From 84d62e1fd8c2ad4e5aa78a7a94091342e843ea02 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Tue, 21 Jun 2011 18:46:41 +0100 Subject: [PATCH] Fixed incorrect queuing of objects in PMA_slidingMessage() --- js/functions.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/functions.js b/js/functions.js index 14f3b46b76..5c4bb5fd2a 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2460,15 +2460,17 @@ function PMA_slidingMessage($obj, msg) { // If there already is a message inside the // target object, we must get rid of it $obj - .append('
' + msg + '
') .find('div') .first() .fadeOut(function () { - $(this).remove(); - $obj.animate({ - height: $obj.find('div').first().height() - }); $obj + .children() + .remove(); + $obj + .append('
' + msg + '
') + .animate({ + height: $obj.find('div').first().height() + }) .find('div') .first() .fadeIn();