Fix up device component tab navigation & return URLs

This commit is contained in:
Jeremy Stretch
2020-11-10 11:46:04 -05:00
parent aac930237a
commit 2377e04911
4 changed files with 49 additions and 42 deletions

View File

@@ -873,7 +873,7 @@ var prefix = "tab_";
if (hash) {
$('.nav-pills a[href="'+hash.replace(prefix,"")+'"]').tab('show');
}
$('.nav-tabs a').on('shown.bs.tab', function (e) {
$('.nav-pills a').on('shown.bs.tab', function (e) {
window.location.hash = e.target.hash.replace("#", "#" + prefix);
});