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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3457%2Fhead;p=thirdparty%2Frspamd.git [WebUI] Remove event listeners on disconnect --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 654979fe59..1841588777 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();