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
@@ -58,7 +58,7 @@ $(document).ready(function() {
|
||||
|
||||
// empty previous search results while we are waiting for new results
|
||||
$("#sqlqueryresults").empty();
|
||||
PMA_ajaxShowMessage(PMA_messages['strSearching']);
|
||||
var msgbox = PMA_ajaxShowMessage(PMA_messages['strSearching']);
|
||||
|
||||
// add this hidden field just once
|
||||
if (! $search_form.find('input:hidden').is('#ajax_request_hidden')) {
|
||||
@@ -84,6 +84,10 @@ $(document).ready(function() {
|
||||
// error message (zero rows)
|
||||
$("#sqlqueryresults").html(response['message']);
|
||||
}
|
||||
})
|
||||
|
||||
msgbox.clearQueue().fadeOut('medium', function() {
|
||||
$(this).hide();
|
||||
});
|
||||
}) // end $.post()
|
||||
})
|
||||
}, 'top.frame_content'); // end $(document).ready()
|
||||
|
Reference in New Issue
Block a user