From: moisseev Date: Tue, 22 Jun 2021 17:53:44 +0000 (+0300) Subject: [WebUI] Disable bootstrap tooltips X-Git-Tag: 3.0~259^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4bca9b6cd9a442421349bfbb1ccd5d2e1ab1608f;p=rspamd.git [WebUI] Disable bootstrap tooltips that are too difficult to handle properly for dynamic HTML content. --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index a99cbd4fb..171812a0c 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -436,7 +436,6 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_ } $("#settings").popover({ - title: "WebUI settings", container: "body", placement: "bottom", html: true, @@ -445,6 +444,9 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_ // Using .clone() has the side-effect of producing elements with duplicate id attributes. return $("#settings-popover").clone(); } + // Restore the tooltip of the element that the popover is attached to. + }).attr("title", function () { + return $(this).attr("data-original-title"); }); $("#settings").on("click", function (e) { e.preventDefault(); @@ -508,12 +510,6 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_ tabClick("#" + $("#navBar > ul > .nav-item > .nav-link.active").attr("id")); }); - $("body").tooltip({ - selector: ".symbol-default abbr[title]", - placement: "left", - html: true - }); - // Radio buttons $(document).on("click", "input:radio[name=\"clusterName\"]", function () { if (!this.disabled) {