Browse Source

Adds utility method to remove tooltips.

master
damencho 9 years ago
parent
commit
df3b7e2dbc
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      modules/UI/util/UIUtil.js

+ 9
- 0
modules/UI/util/UIUtil.js View File

@@ -113,6 +113,15 @@ import KeyboardShortcut from '../../keyboardshortcut/keyboardshortcut';
113 113
         });
114 114
     },
115 115
 
116
+    /**
117
+     * Removes the tooltip to the given element.
118
+     *
119
+     * @param element the element to remove the tooltip from
120
+     */
121
+    removeTooltip: function (element) {
122
+        AJS.$(element).tooltip('destroy');
123
+    },
124
+
116 125
     /**
117 126
      * Internal util function for generating tooltip title.
118 127
      *

Loading…
Cancel
Save