Merge pull request #963 from m-voloshin/destroy-tooltips
Completely remove attributes to destroy tooltip properly
This commit is contained in:
commit
b3f0620f5b
|
@ -143,11 +143,9 @@ const TOOLTIP_POSITIONS = {
|
||||||
* @param element the element to remove the tooltip from
|
* @param element the element to remove the tooltip from
|
||||||
*/
|
*/
|
||||||
removeTooltip: function (element) {
|
removeTooltip: function (element) {
|
||||||
AJS.$(element).tooltip('destroy');
|
element.removeAttribute('data-tooltip', '');
|
||||||
element.setAttribute('data-tooltip', '');
|
element.removeAttribute('data-i18n','');
|
||||||
element.setAttribute('data-i18n','');
|
element.removeAttribute('content','');
|
||||||
element.setAttribute('content','');
|
|
||||||
element.setAttribute('shortcut','');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue