Sfoglia il codice sorgente

Completely remove attributes to destroy tooltip properly

j8
Maxim Voloshin 9 anni fa
parent
commit
2f92aa9645
1 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. 3
    5
      modules/UI/util/UIUtil.js

+ 3
- 5
modules/UI/util/UIUtil.js Vedi File

143
      * @param element the element to remove the tooltip from
143
      * @param element the element to remove the tooltip from
144
      */
144
      */
145
     removeTooltip: function (element) {
145
     removeTooltip: function (element) {
146
-        AJS.$(element).tooltip('destroy');
147
-        element.setAttribute('data-tooltip', '');
148
-        element.setAttribute('data-i18n','');
149
-        element.setAttribute('content','');
150
-        element.setAttribute('shortcut','');
146
+        element.removeAttribute('data-tooltip', '');
147
+        element.removeAttribute('data-i18n','');
148
+        element.removeAttribute('content','');
151
     },
149
     },
152
 
150
 
153
     /**
151
     /**

Loading…
Annulla
Salva