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

@@ -163,7 +163,7 @@ $(document).ready(function() {
/** @lends jQuery */
event.preventDefault();
PMA_ajaxShowMessage();
var msgbox = PMA_ajaxShowMessage();
/**
* @var button_options Object containing options for jQueryUI dialog buttons
@@ -224,6 +224,10 @@ $(document).ready(function() {
buttons: button_options
}); //dialog options end
displayPasswordGenerateButton();
msgbox.clearQueue().fadeOut('medium', function() {
$(this).hide();
});
}); // end $.get()
});//end of Add New User AJAX event handler
@@ -314,7 +318,7 @@ $(document).ready(function() {
/** @lends jQuery */
event.preventDefault();
PMA_ajaxShowMessage();
var msgbox = PMA_ajaxShowMessage();
$(this).parents('tr').addClass('current_row');
@@ -333,6 +337,10 @@ $(document).ready(function() {
buttons: button_options
}); //dialog options end
displayPasswordGenerateButton();
msgbox.clearQueue().fadeOut('medium', function() {
$(this).hide();
});
}) // end $.get()
})
@@ -418,7 +426,7 @@ $(document).ready(function() {
/** @lends jQuery */
event.preventDefault();
PMA_ajaxShowMessage();
var msgbox = PMA_ajaxShowMessage();
/**
* @var button_options Object containing options for jQueryUI dialog buttons
@@ -433,6 +441,11 @@ $(document).ready(function() {
width : 500,
buttons: button_options
});
msgbox.clearQueue().fadeOut('medium', function() {
$(this).hide();
});
}) //end $.get
}) //end export privileges
@@ -447,7 +460,7 @@ $(document).ready(function() {
$("#initials_table.ajax").find("a").live('click', function(event) {
event.preventDefault();
PMA_ajaxShowMessage();
var msgbox = PMA_ajaxShowMessage();
$.get($(this).attr('href'), {'ajax_request' : true}, function(data) {
// This form is not on screen when first entering Privileges
@@ -457,6 +470,10 @@ $(document).ready(function() {
$("#initials_table")
.after(data).show("medium")
.siblings("h2").not(":first").remove();
msgbox.clearQueue().fadeOut('medium', function() {
$(this).hide();
});
}) // end $.get
})// end of the paginate users table