diff options
author | Andrei Lukovenko <aluck@cordeo.ru> | 2013-11-19 16:03:47 +0600 |
---|---|---|
committer | Andrei Lukovenko <aluck@cordeo.ru> | 2013-11-19 16:03:47 +0600 |
commit | 4c8ee7a9b091cf8eb98d1be24d2ad8f825f256cc (patch) | |
tree | 7afcb7ff8cba3d802e8ce8814599ca7c33839a20 /dev/jquery.jtable.editing.js | |
parent | 1b0b22f786ee332f75bf2290da040e7123f89e03 (diff) | |
download | jtable-4c8ee7a9b091cf8eb98d1be24d2ad8f825f256cc.zip jtable-4c8ee7a9b091cf8eb98d1be24d2ad8f825f256cc.tar.gz jtable-4c8ee7a9b091cf8eb98d1be24d2ad8f825f256cc.tar.bz2 |
bugfix: null strings appeared as 0 after updating a row
Diffstat (limited to 'dev/jquery.jtable.editing.js')
-rw-r--r-- | dev/jquery.jtable.editing.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/jquery.jtable.editing.js b/dev/jquery.jtable.editing.js index ef8956f..e23d276 100644 --- a/dev/jquery.jtable.editing.js +++ b/dev/jquery.jtable.editing.js @@ -359,7 +359,7 @@ var $columns = $tableRow.find('td'); for (var i = 0; i < this._columnList.length; i++) { var displayItem = this._getDisplayTextForRecordField(record, this._columnList[i]); - if (displayItem == 0) displayItem = "0"; + if ((displayItem != "") && (displayItem == 0)) displayItem = "0"; $columns.eq(this._firstDataColumnOffset + i).html(displayItem || ''); } |