Skip to content

Commit

Permalink
Fix bug#4266: error_reporting: cannot call methods on widget(tooltip)…
Browse files Browse the repository at this point in the history
… prior to initialization

Signed-off-by: Atul Pratap Singh <[email protected]>
  • Loading branch information
atul516 committed Jan 31, 2014
1 parent ac530e7 commit b7dfae0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ function PMA_ajaxShowMessage(message, timeout)
$retval
.delay(timeout)
.fadeOut('medium', function () {
if ($(this).is('.dismissable')) {
if ($(this).is(':data(tooltip)')) {
$(this).tooltip('destroy');
}
// Remove the notification
Expand Down Expand Up @@ -1710,10 +1710,8 @@ function PMA_ajaxRemoveMessage($this_msgbox)
$this_msgbox
.stop(true, true)
.fadeOut('medium');
if ($this_msgbox.is('.dismissable')) {
if ($.isFunction($this_msgbox.tooltip)) {
$this_msgbox.tooltip('destroy');
}
if ($this_msgbox.is(':data(tooltip)')) {
$this_msgbox.tooltip('destroy');
} else {
$this_msgbox.remove();
}
Expand Down

0 comments on commit b7dfae0

Please sign in to comment.