From: moisseev Date: Wed, 16 Jun 2021 08:19:52 +0000 (+0300) Subject: [WebUI] Fix click on icons inside buttons X-Git-Tag: 3.0~289^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=517c412bbd1d0419bc198591b70a89a5d425ed91;p=rspamd.git [WebUI] Fix click on icons inside buttons --- 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();