浏览代码

Updates remove tooltip util method.

Destroy is just hiding current tooltip, we also need to remove other attributes to stop showing the tooltip.
master
damencho 8 年前
父节点
当前提交
da65bbaa2d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      modules/UI/util/UIUtil.js

+ 4
- 0
modules/UI/util/UIUtil.js 查看文件

144
      */
144
      */
145
     removeTooltip: function (element) {
145
     removeTooltip: function (element) {
146
         AJS.$(element).tooltip('destroy');
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
     /**

正在加载...
取消
保存