Use JQuery UI tooltip (for instance in article or menu admin)
Yes, It is possible to use JQTooltip in the same DOM as a BSTooltip using the bridge functionality from JQ !
jQuery.widget.bridge('jqTooltip', jQuery.ui.tooltip);
But media/media/js/mediafield.js on line 139 attempts to destroy all existing tooltips (BS ones).
And this happens before one can set a bridge. So we get the error :
Uncaught Error: cannot call methods on tooltip prior to initialization; attempted to call method 'destroy'
This conflict should not create an error
This conflict creates an error and locks JavaScript !
Joomla! 3.7...
Before invoking the destroy method code should ensure the object is a tooltip
or, at least use a try and catch the error in order to let the page scripts go on
For instance
try{
this.$input.tooltip('destroy');
} catch(err){
// do we have to do something with this error ?
}
Labels |
Added:
?
|
Category | ⇒ | JavaScript |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-10 20:34:52 |
Closed_By | ⇒ | Bakual |
Closing as we have a PR
Please test PR #15951