- Avoid code duplication

- Use standard $ prefix for jQuery object
This commit is contained in:
Marc Delisle
2011-04-02 06:22:18 -04:00
parent aa1453d94c
commit 401d211d70
5 changed files with 37 additions and 61 deletions

View File

@@ -138,7 +138,7 @@ $(document).ready(function() {
$("#db_search_form.ajax").live('submit', function(event) {
event.preventDefault();
var msgbox = PMA_ajaxShowMessage(PMA_messages['strSearching']);
var $msgbox = PMA_ajaxShowMessage(PMA_messages['strSearching']);
// jQuery object to reuse
$form = $(this);
@@ -167,10 +167,7 @@ $(document).ready(function() {
$("#sqlqueryresults").html(response['message']);
}
msgbox.clearQueue().fadeOut('medium', function() {
$(this).hide();
});
PMA_ajaxRemoveMessage($msgbox);
})
})
}, 'top.frame_content'); // end $(document).ready()