]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Remove event listeners on disconnect 3457/head
authormoisseev <moiseev@mezonplus.ru>
Sun, 2 Aug 2020 15:33:17 +0000 (18:33 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sun, 2 Aug 2020 15:33:17 +0000 (18:33 +0300)
interface/js/app/rspamd.js

index 654979fe592fe5e2da26f3d6943e81bb714fe445..1841588777c01ab13687043049141434bd603292 100644 (file)
@@ -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();