diff options
author | Eefimov <ef_ev@mail.ru> | 2016-03-19 17:28:46 +0300 |
---|---|---|
committer | Eefimov <ef_ev@mail.ru> | 2016-03-19 17:28:46 +0300 |
commit | 8297eae251b34ca195480141dc232bddf756adda (patch) | |
tree | e206650c38d01e26ea14d7a05641076cb7453d5d | |
parent | d5cbeb5201832bc750cc30ef538e0110a1e17e87 (diff) | |
download | jtable-8297eae251b34ca195480141dc232bddf756adda.zip jtable-8297eae251b34ca195480141dc232bddf756adda.tar.gz jtable-8297eae251b34ca195480141dc232bddf756adda.tar.bz2 |
bugfix: 0 disappeared after updating a row
-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 9b7ac91..39a85d0 100644 --- a/dev/jquery.jtable.editing.js +++ b/dev/jquery.jtable.editing.js @@ -415,7 +415,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 != "") && (displayItem == 0)) displayItem = "0"; + if ((displayItem === 0)) displayItem = "0"; $columns.eq(this._firstDataColumnOffset + i).html(displayItem || ''); } |