forked from 0x2620/oxjs
url controller updates, list bugfixes
This commit is contained in:
parent
ef9040ba24
commit
3965eed153
12 changed files with 98 additions and 48 deletions
|
|
@ -113,9 +113,8 @@ Ox.IconList = function(options, self) {
|
|||
}
|
||||
|
||||
function updateKeys() {
|
||||
self.options.keys = Ox.unique(Ox.merge(self.options.keys, [self.options.sort[0].key]));
|
||||
that.$element.options({
|
||||
keys: self.options.keys
|
||||
keys: Ox.unique(Ox.merge(self.options.sort[0].key, self.options.keys))
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +128,9 @@ Ox.IconList = function(options, self) {
|
|||
} else if (key == 'selected') {
|
||||
that.$element.options(key, value);
|
||||
} else if (key == 'sort') {
|
||||
updateKeys();
|
||||
that.$element.options(key, value);
|
||||
//that.$element.sortList(key, operator);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -177,6 +178,7 @@ Ox.IconList = function(options, self) {
|
|||
that.$element.size();
|
||||
};
|
||||
|
||||
// fixme: deprecate, use options()
|
||||
/*@
|
||||
sortList <f> sort list
|
||||
(key, operator) -> <o> the list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue