- 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

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