aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-08-02 18:33:17 +0300
committermoisseev <moiseev@mezonplus.ru>2020-08-02 18:33:17 +0300
commit8737701d4e30d62a611622ddd3011ca482f9a6dc (patch)
treefe67701298d05ee1a91753300e4b564df38e7374 /interface
parent77045b2a870f1968fb0f74789cbe7292039293af (diff)
downloadrspamd-8737701d4e30d62a611622ddd3011ca482f9a6dc.tar.gz
rspamd-8737701d4e30d62a611622ddd3011ca482f9a6dc.zip
[WebUI] Remove event listeners on disconnect
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/rspamd.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 654979fe5..184158877 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -78,6 +78,10 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_
});
});
+ // Remove jquery-stickytabs listeners
+ $(window).off("hashchange");
+ $(".nav-tabs-sticky > .nav-item > .nav-link").off("click").removeClass("active");
+
stopTimers();
cleanCredentials();
ui.connect();