From bc5602d079131a9c8429948b283e5a85dc48f4a4 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 2 Jul 2012 21:51:13 +0530 Subject: [PATCH] bug #3526916 [interface] Search fails with JS error when tooltips disabled --- ChangeLog | 1 + js/functions.js | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4da5a1883..d2c1ffe0a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog - bug #3539044 [interface] Browse mode "Show" button gives blank page if no results anymore - bug #3534979 [interface] Copy Database Ajax feedback vanishes long before copying is done - bug #3527531 [interface] GC-maxlifetime warning incorrectly displayed +- bug #3526916 [interface] Search fails with JS error when tooltips disabled 3.5.2.0 (not yet released) - bug #3521416 [interface] JS error when editing index diff --git a/js/functions.js b/js/functions.js index 1bb944544c..22edb01254 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1388,10 +1388,12 @@ function PMA_ajaxRemoveMessage($this_msgbox) .stop(true, true) .fadeOut('medium'); if ($this_msgbox.is('.dismissable')) { - // 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 ($('#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'); + } } else { $this_msgbox.remove(); }