do not append ajax_request more than once
This commit is contained in:
@@ -286,7 +286,9 @@ $(document).ready(function() {
|
||||
event.preventDefault();
|
||||
|
||||
PMA_ajaxShowMessage();
|
||||
$(the_form).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
if (! the_form.find('input:hidden').is('#ajax_request_hidden')) {
|
||||
the_form.append('<input type="hidden" id="ajax_request_hidden" name="ajax_request" value="true" />');
|
||||
}
|
||||
|
||||
$.post($(the_form).attr('action'), $(the_form).serialize(), function(data) {
|
||||
if(data.success == true) {
|
||||
|
Reference in New Issue
Block a user