]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix click on icons inside buttons 3797/head
authormoisseev <moiseev@mezonplus.ru>
Wed, 16 Jun 2021 08:19:52 +0000 (11:19 +0300)
committermoisseev <moiseev@mezonplus.ru>
Wed, 16 Jun 2021 15:16:20 +0000 (18:16 +0300)
interface/js/app/rspamd.js

index 2f1b88aa0340d88146a1817f22b4cdb9b6a15cae..1679db1b3894ac125a1ef9792ba2a53f709fa0fb 100644 (file)
@@ -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();