bug 3084745 (error when editing and changing nothing)
This commit is contained in:
@@ -291,6 +291,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$.post($form.attr('action'), $form.serialize(), function(data) {
|
$.post($form.attr('action'), $form.serialize(), function(data) {
|
||||||
|
if (typeof data.success != 'undefined') {
|
||||||
if(data.success == true) {
|
if(data.success == true) {
|
||||||
PMA_ajaxShowMessage(data.message);
|
PMA_ajaxShowMessage(data.message);
|
||||||
|
|
||||||
@@ -311,10 +312,15 @@ $(document).ready(function() {
|
|||||||
//Clear the data in the forms
|
//Clear the data in the forms
|
||||||
$form.find('input:reset').trigger('click');
|
$form.find('input:reset').trigger('click');
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");
|
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
//happens for example when no change was done while editing
|
||||||
|
$('#insertForm').remove();
|
||||||
|
$('#topmenucontainer').after('<div id="sqlqueryresults"></div>');
|
||||||
|
$('#sqlqueryresults').html(data);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}) // end submission of data to be inserted into table
|
}) // end submission of data to be inserted into table
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user