Properly destroy this tooltip

This commit is contained in:
Marc Delisle 2013-01-08 16:36:58 -05:00
parent a2908fe658
commit 888bcca73e

View File

@ -1586,11 +1586,8 @@ function PMA_ajaxRemoveMessage($this_msgbox)
.stop(true, true)
.fadeOut('medium');
if ($this_msgbox.is('.dismissable')) {
if ($('#no_hint').length < 0) {
// Here we should destroy the qtip instance, but
// due to a bug in qtip's implementation we can
// only hide it without throwing JS errors.
$this_msgbox.qtip('hide');
if ($.isFunction($this_msgbox.tooltip)) {
$this_msgbox.tooltip('destroy');
}
} else {
$this_msgbox.remove();