Hide 'Loading' message once request is done, not on 5 sec timeout.

Applied to every loading message that doesn't show a success/error
feedback message.
This commit is contained in:
Tyron Madlener
2011-03-31 14:36:11 +02:00
committed by Michal Čihař
parent c33ba84655
commit 0762bddfd1
6 changed files with 79 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ $(document).ready(function() {
$("#copy_db_form.ajax").live('submit', function(event) {
event.preventDefault();
PMA_ajaxShowMessage(PMA_messages['strCopyingDatabase']);
var msgbox = PMA_ajaxShowMessage(PMA_messages['strCopyingDatabase']);
var $form = $(this);
@@ -119,6 +119,10 @@ $(document).ready(function() {
else {
$('#topmenucontainer').after(data.error);
}
msgbox.clearQueue().fadeOut('medium', function() {
$(this).hide();
});
}) // end $.get
}) // end copy database