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:

committed by
Michal Čihař

parent
c33ba84655
commit
0762bddfd1
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user