Merge pull request #611 from Th3M3/polish_settings_page

Polish the settings page
This commit is contained in:
DL6ER
2017-11-05 22:00:20 +01:00
committed by GitHub
2 changed files with 460 additions and 477 deletions
+2 -10
View File
@@ -186,17 +186,9 @@ $("button[id^='adlist-btn-']").on("click", function (e) {
});
// Javascript to go to specified tab on save or hyperlink
$(function () {
if(location.hash.length > 0)
{
var activeTab = $("[href=" + location.hash + "]");
activeTab && activeTab.tab("show");
}
});
// Change hash for save and reload
// Change "?tab=" parameter in URL for save and reload
$(".nav-tabs a").on("shown.bs.tab", function (e) {
window.location.hash = e.target.hash;
window.history.pushState("", "", "?tab=" + e.target.hash.substring(1));
window.scrollTo(0, 0);
});
+458 -467
View File
File diff suppressed because it is too large Load Diff