forked from 0x2620/oxjs
update sort after edit
This commit is contained in:
parent
74802d284a
commit
314fcc7b0a
3 changed files with 12 additions and 2 deletions
|
|
@ -489,7 +489,7 @@ Ox.TextList = function(options, self) {
|
|||
Ox.forEach(self.options.items, function(item, i) {
|
||||
var value = (
|
||||
sort.map ? sort.map(item[sort.key]) : item[sort.key]
|
||||
).toLowerCase();
|
||||
).toString().toLowerCase();
|
||||
if (Ox.startsWith(value, query)) {
|
||||
that.$body.options({selected: [item[self.unique]]});
|
||||
Ox.print('QUERY', query, 'VALUE', value)
|
||||
|
|
@ -826,7 +826,10 @@ Ox.TextList = function(options, self) {
|
|||
} else {
|
||||
that.$body.value(id, key, value);
|
||||
$cell && $cell.html(column.format ? column.format(value) : value);
|
||||
/*
|
||||
if (key == self.options.sort[0].key) {
|
||||
that.$body.sort();
|
||||
}
|
||||
/* fixme: something like this is needed:
|
||||
if (column.unique) {
|
||||
that.$body.setId($item.data('id'), value);
|
||||
$item.data({id: value});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue