From: moisseev Date: Sun, 2 Aug 2020 15:33:17 +0000 (+0300) Subject: [WebUI] Remove event listeners on disconnect X-Git-Tag: 2.6~189^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8737701d4e30d62a611622ddd3011ca482f9a6dc;p=rspamd.git [WebUI] Remove event listeners on disconnect --- 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();