don't update table list cell value while editing cell
This commit is contained in:
parent
607106ac67
commit
24adbd3894
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue