Ox.CustomList: implement sort update
This commit is contained in:
parent
716db744b9
commit
cdf49b0bbe
1 changed files with 5 additions and 2 deletions
|
@ -48,6 +48,9 @@ Ox.CustomList = function(options, self) {
|
|||
self.$list.options({selected: self.options.selected});
|
||||
// FIXME: TableList doesn't trigger event here
|
||||
that.triggerEvent('select', {ids: self.options.selected});
|
||||
},
|
||||
sort: function() {
|
||||
self.$list.options({sort: self.options.sort});
|
||||
}
|
||||
})
|
||||
.addClass('OxCustomList');
|
||||
|
@ -68,9 +71,9 @@ Ox.CustomList = function(options, self) {
|
|||
min: self.options.min,
|
||||
orientation: 'vertical',
|
||||
pageLength: self.options.pageLength,
|
||||
query: self.options.query,
|
||||
query: Ox.clone(self.options.query, true),
|
||||
selected: self.options.selected,
|
||||
sort: self.options.sort,
|
||||
sort: Ox.clone(self.options.sort, true),
|
||||
sortable: self.options.sortable,
|
||||
sums: self.options.sums,
|
||||
type: 'text',
|
||||
|
|
Loading…
Reference in a new issue