diff options
Diffstat (limited to 'dev/jquery.jtable.editing.js')
-rw-r--r-- | dev/jquery.jtable.editing.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dev/jquery.jtable.editing.js b/dev/jquery.jtable.editing.js index 01c64d1..7ba0e0f 100644 --- a/dev/jquery.jtable.editing.js +++ b/dev/jquery.jtable.editing.js @@ -74,6 +74,13 @@ id: 'EditDialogSaveButton',
text: self.options.messages.save,
click: function () {
+
+ //row maybe removed by another source, if so, do nothing
+ if (self._$editingRow.hasClass('jtable-row-removed')) {
+ self._$editDiv.dialog('close');
+ return;
+ }
+
var $saveButton = self._$editDiv.find('#EditDialogSaveButton');
var $editForm = self._$editDiv.find('form');
if (self._trigger("formSubmitting", null, { form: $editForm, formType: 'edit', row: self._$editingRow }) != false) {
|