commit 8737701: [WebUI] Remove event listeners on disconnect
moisseev
moiseev at mezonplus.ru
Sun Aug 2 17:49:06 UTC 2020
Author: moisseev
Date: 2020-08-02 18:33:17 +0300
URL: https://github.com/rspamd/rspamd/commit/8737701d4e30d62a611622ddd3011ca482f9a6dc (refs/pull/3457/head)
[WebUI] Remove event listeners on disconnect
---
interface/js/app/rspamd.js | 4 ++++
1 file changed, 4 insertions(+)
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();
More information about the Commits
mailing list