diff options
author | Amikumar <netamitk@gmail.com> | 2013-02-28 18:32:05 +0530 |
---|---|---|
committer | Amikumar <netamitk@gmail.com> | 2013-02-28 18:32:05 +0530 |
commit | bb61d8f96519b32a2f1db4f16de3a9797eda0823 (patch) | |
tree | 0521a5561d26f129f7f50c507eeba9f4a4484b68 | |
parent | be3822f4d472c50338c28809cd876927a5273aab (diff) | |
download | jtable-bb61d8f96519b32a2f1db4f16de3a9797eda0823.zip jtable-bb61d8f96519b32a2f1db4f16de3a9797eda0823.tar.gz jtable-bb61d8f96519b32a2f1db4f16de3a9797eda0823.tar.bz2 |
Disable Save Button after click on EDIT screeen
There was issue while click on SAVE Button on EDIT screen it was not disabling the button.
Due to that user can click the save button multiple times.I debugged and found it was not getting save button object properly self._$editDiv.find('#EditDialogSaveButton');
-Amit
-rw-r--r-- | lib/jquery.jtable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jquery.jtable.js b/lib/jquery.jtable.js index 0db71c6..b98b678 100644 --- a/lib/jquery.jtable.js +++ b/lib/jquery.jtable.js @@ -2208,7 +2208,7 @@ THE SOFTWARE. return; } - var $saveButton = self._$editDiv.find('#EditDialogSaveButton'); + var $saveButton = $('#EditDialogSaveButton'); var $editForm = self._$editDiv.find('form'); if (self._trigger("formSubmitting", null, { form: $editForm, formType: 'edit', row: self._$editingRow }) != false) { self._setEnabledOfDialogButton($saveButton, false, self.options.messages.saving); |