update IconList
This commit is contained in:
parent
19d5f811d6
commit
2bd4156f6c
1 changed files with 10 additions and 1 deletions
|
@ -212,7 +212,16 @@ Ox.IconList = function(options, self) {
|
||||||
return that.$element.value(id, key);
|
return that.$element.value(id, key);
|
||||||
} else {
|
} else {
|
||||||
that.$element.value(id, key, value);
|
that.$element.value(id, key, value);
|
||||||
// FIXME: Like TextList, handle unique id and selection change here
|
if (key == self.unique) {
|
||||||
|
// unique id has changed
|
||||||
|
self.options.selected = self.options.selected.map(function(id_) {
|
||||||
|
return id_ == id ? value : id_
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (key == self.options.sort[0].key) {
|
||||||
|
// sort key has changed
|
||||||
|
that.$element.sort();
|
||||||
|
}
|
||||||
return that;
|
return that;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue