mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Go to specified tab on save or hyperlink
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -161,3 +161,9 @@ $("button[id^='adlist-btn-']").on("click", function (e) {
|
||||
$(this).siblings("input[name^='adlist-enable-']").prop("disabled", !status);
|
||||
$(this).siblings("a").css("text-decoration", textType);
|
||||
});
|
||||
|
||||
// Javascript to go to specified tab on save or hyperlink
|
||||
$(function () {
|
||||
var activeTab = $('[href=' + location.hash + ']');
|
||||
activeTab && activeTab.tab('show');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user