From 24adbd3894df08bab5745972e2709fd2935f6e2e Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 11 Aug 2013 08:10:26 +0000 Subject: [PATCH] don't update table list cell value while editing cell --- source/Ox.UI/js/List/TableList.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/List/TableList.js b/source/Ox.UI/js/List/TableList.js index 8d733c1b..2e592add 100644 --- a/source/Ox.UI/js/List/TableList.js +++ b/source/Ox.UI/js/List/TableList.js @@ -1036,7 +1036,7 @@ Ox.TableList = function(options, self) { // into $input if triggered via keyboard shortcut setTimeout(function() { $input.focusInput(select); - }, 0); + }); function submit() { var value = $input.value(); $input.remove(); @@ -1226,7 +1226,9 @@ Ox.TableList = function(options, self) { id = value; } $cell = getCell(id, key); - $cell && $cell.html(formatValue(key, value, that.$body.value(id))); + if ($cell && !$cell.is('.OxEdit')) { + $cell.html(formatValue(key, value, that.$body.value(id))); + } if (!self.options.sortable && key == self.options.sort[0].key) { // sort key has changed that.$body.sort();