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('
') .find('div') .first() .fadeOut(function () { - $(this).remove(); - $obj.animate({ - height: $obj.find('div').first().height() - }); $obj + .children() + .remove(); + $obj + .append('') + .animate({ + height: $obj.find('div').first().height() + }) .find('div') .first() .fadeIn();