The branch, master has been updated via a1e318fbec97cae0965e843bca50b0a1677222e2 (commit) from 08c0f4e92115f84e381775a42b7d644309be9163 (commit)
- Log ----------------------------------------------------------------- commit a1e318fbec97cae0965e843bca50b0a1677222e2 Author: Marc Delisle marc@infomarc.info Date: Sun Oct 31 07:27:01 2010 -0400
do not reset form if we are editing
-----------------------------------------------------------------------
Summary of changes: js/tbl_change.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/js/tbl_change.js b/js/tbl_change.js index f9c2d43..3608b40 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -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() */ @@ -304,8 +304,11 @@ $(document).ready(function() { $(notice_class).remove(); }
- //Clear the data in the forms - $(the_form).find('input:reset').trigger('click'); + var submit_type = the_form.find("select[name='submit_type']").val(); + if ('insert' == submit_type || 'insertignore' == submit_type) { + //Clear the data in the forms + $(the_form).find('input:reset').trigger('click'); + } } else { PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");
hooks/post-receive