Procházet zdrojové kódy

Updates remove tooltip util method.

Destroy is just hiding current tooltip, we also need to remove other attributes to stop showing the tooltip.
j8
damencho před 9 roky
rodič
revize
da65bbaa2d
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      modules/UI/util/UIUtil.js

+ 4
- 0
modules/UI/util/UIUtil.js Zobrazit soubor

@@ -144,6 +144,10 @@ const TOOLTIP_POSITIONS = {
144 144
      */
145 145
     removeTooltip: function (element) {
146 146
         AJS.$(element).tooltip('destroy');
147
+        element.setAttribute('data-tooltip', '');
148
+        element.setAttribute('data-i18n','');
149
+        element.setAttribute('content','');
150
+        element.setAttribute('shortcut','');
147 151
     },
148 152
 
149 153
     /**

Načítá se…
Zrušit
Uložit