commit 517c412: [WebUI] Fix click on icons inside buttons

moisseev moiseev at mezonplus.ru
Wed Jun 16 15:35:05 UTC 2021


Author: moisseev
Date: 2021-06-16 11:19:52 +0300
URL: https://github.com/rspamd/rspamd/commit/517c412bbd1d0419bc198591b70a89a5d425ed91 (refs/pull/3797/head)

[WebUI] Fix click on icons inside buttons

---
 interface/js/app/rspamd.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 2f1b88aa0..1679db1b3 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -498,12 +498,12 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_
             }, 1000);
         });
 
-        $('a[data-toggle="tab"]').on("shown.bs.tab", function (e) {
-            tabClick("#" + $(e.target).attr("id"));
+        $('a[data-toggle="tab"]').on("shown.bs.tab", function () {
+            tabClick("#" + $(this).attr("id"));
         });
         $("#refresh, #disconnect").on("click", function (e) {
             e.preventDefault();
-            tabClick("#" + $(e.target).attr("id"));
+            tabClick("#" + $(this).attr("id"));
         });
         $(".dropdown-menu a").click(function (e) {
             e.preventDefault();


More information about the Commits mailing list