1
0
Fork 0
forked from 0x2620/oxjs

update sort after edit

This commit is contained in:
rolux 2011-05-24 16:51:40 +02:00
commit 314fcc7b0a
3 changed files with 12 additions and 2 deletions

View file

@ -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});