From 517c412bbd1d0419bc198591b70a89a5d425ed91 Mon Sep 17 00:00:00 2001 From: moisseev Date: Wed, 16 Jun 2021 11:19:52 +0300 Subject: [PATCH] [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(); -- 2.39.5