Make DNS the default tab

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2017-10-18 23:55:02 +01:00
parent 1e105f1df6
commit 903cb2a4f4
2 changed files with 9 additions and 8 deletions

View File

@@ -164,10 +164,11 @@ $("button[id^='adlist-btn-']").on("click", function (e) {
// Javascript to go to specified tab on save or hyperlink
$(function () {
var activeTab = $('[href=' + location.hash + ']');
activeTab && activeTab.tab('show');
var activeTab = $("[href=" + location.hash + "]");
activeTab && activeTab.tab("show");
});
// Change hash for save and reload
$('.nav-tabs a').on('shown.bs.tab', function (e) {
$(".nav-tabs a").on("shown.bs.tab", function (e) {
window.location.hash = e.target.hash;
})
window.scrollTo(0, 0);
});