mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
fix DHCP tab syncing after telereporter import
Signed-off-by: trimalcione <okchtioui@gmail.com>
This commit is contained in:
@@ -234,8 +234,13 @@ $("button[id^='adlist-btn-']").on("click", function (e) {
|
||||
|
||||
// Change "?tab=" parameter in URL for save and reload
|
||||
$(".nav-tabs a").on("shown.bs.tab", function (e) {
|
||||
window.history.pushState("", "", "?tab=" + e.target.hash.substring(1));
|
||||
window.scrollTo(0, 0);
|
||||
var tab = e.target.hash.substring(1);
|
||||
window.history.pushState("", "", "?tab=" + tab);
|
||||
if(tab === "piholedhcp")
|
||||
{
|
||||
location.reload();
|
||||
}
|
||||
window.scrollTo(0, 0);
|
||||
});
|
||||
|
||||
// Auto dismissal for info notifications
|
||||
|
||||
Reference in New Issue
Block a user