From 4bca9b6cd9a442421349bfbb1ccd5d2e1ab1608f Mon Sep 17 00:00:00 2001
From: moisseev <moiseev@mezonplus.ru>
Date: Tue, 22 Jun 2021 20:53:44 +0300
Subject: [WebUI] Disable bootstrap tooltips

that are too difficult to handle properly for dynamic HTML content.
---
 interface/js/app/rspamd.js | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

(limited to 'interface')

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) {
-- 
cgit v1.2.3