do not reset form if we are editing
This commit is contained in:
@@ -273,7 +273,7 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Submission of data to be inserted into table
|
* Submission of data to be inserted or updated
|
||||||
*
|
*
|
||||||
* @uses PMA_ajaxShowMessage()
|
* @uses PMA_ajaxShowMessage()
|
||||||
*/
|
*/
|
||||||
@@ -304,8 +304,11 @@ $(document).ready(function() {
|
|||||||
$(notice_class).remove();
|
$(notice_class).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Clear the data in the forms
|
var submit_type = the_form.find("select[name='submit_type']").val();
|
||||||
$(the_form).find('input:reset').trigger('click');
|
if ('insert' == submit_type || 'insertignore' == submit_type) {
|
||||||
|
//Clear the data in the forms
|
||||||
|
$(the_form).find('input:reset').trigger('click');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");
|
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");
|
||||||
|
Reference in New Issue
Block a user