1
0
Fork 0
forked from 0x2620/oxjs

merge changes

This commit is contained in:
j 2011-08-04 19:51:07 +02:00
commit 69ec9127fe
2 changed files with 61 additions and 37 deletions

View file

@ -110,6 +110,15 @@ Ox.List = function(options, self) {
scrollTimeout: 0,
selected: []
});
if (!self.isAsync) {
self.selected = self.options.items.map(function(item, i) {
return Ox.extend(item, {_index: i})
}).filter(function(item) {
return self.options.selected.indexOf(item[self.options.unique]) > -1;
}).map(function(item) {
return item['_index'];
});
}
self.options.max == -1 && $.extend(self.keyboardEvents, {
key_alt_control_a: invertSelection,
key_control_a: selectAll