table list: when editing cell, make next click blur, but not cause new click or edit
This commit is contained in:
parent
24adbd3894
commit
a2f6e18900
1 changed files with 6 additions and 0 deletions
|
@ -1007,6 +1007,8 @@ Ox.TableList = function(options, self) {
|
|||
$cell = getCell(id, key),
|
||||
$input,
|
||||
html = $cell.html(),
|
||||
clickableCells = $item.find('.OxClickable').removeClass('OxClickable'),
|
||||
editableCells = $item.find('.OxEditable').removeClass('OxEditable'),
|
||||
index = getColumnIndexById(key),
|
||||
column = self.options.columns[index],
|
||||
width = column.width - self.options.columnsVisible;
|
||||
|
@ -1046,6 +1048,10 @@ Ox.TableList = function(options, self) {
|
|||
width: (width - 8) + 'px'
|
||||
})
|
||||
.html(value);
|
||||
setTimeout(function() {
|
||||
clickableCells.addClass('OxClickable');
|
||||
editableCells.addClass('OxEditable');
|
||||
}, 250);
|
||||
that.triggerEvent('submit', {
|
||||
id: id,
|
||||
key: key,
|
||||
|
|
Loading…
Reference in a new issue