summaryrefslogtreecommitdiffstats
path: root/dev/jquery.jtable.editing.js
diff options
context:
space:
mode:
authorHalil İbrahim Kalkan <hikalkan@gmail.com>2013-01-30 21:48:29 +0200
committerHalil İbrahim Kalkan <hikalkan@gmail.com>2013-01-30 21:48:29 +0200
commitccb806db75fc25f02a704171b248cae04fd1a497 (patch)
treeb6f5fd5afb9a2bfb3f4495ea10674c88251a84ba /dev/jquery.jtable.editing.js
parentc26fddbe3a9d4df9405236d5c339942bd5aa18f9 (diff)
downloadjtable-ccb806db75fc25f02a704171b248cae04fd1a497.zip
jtable-ccb806db75fc25f02a704171b248cae04fd1a497.tar.gz
jtable-ccb806db75fc25f02a704171b248cae04fd1a497.tar.bz2
jTable v2.1.1v2.1.1
Multiple dependsOn support. [#94] Enhanced option caching. [#63] Portuguese - Portugal localization. [#142] Chinese localization. [#103] Fixed some issues. [#90, #28, #130]
Diffstat (limited to 'dev/jquery.jtable.editing.js')
-rw-r--r--dev/jquery.jtable.editing.js7
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) {