Adds utility method to remove tooltips.

pull/915/head
damencho 8 years ago
parent e7cbacf9a2
commit df3b7e2dbc
  1. 9
      modules/UI/util/UIUtil.js

@ -113,6 +113,15 @@ import KeyboardShortcut from '../../keyboardshortcut/keyboardshortcut';
}); });
}, },
/**
* Removes the tooltip to the given element.
*
* @param element the element to remove the tooltip from
*/
removeTooltip: function (element) {
AJS.$(element).tooltip('destroy');
},
/** /**
* Internal util function for generating tooltip title. * Internal util function for generating tooltip title.
* *

Loading…
Cancel
Save