Ox.CustomList: implement sort update

This commit is contained in:
rolux 2012-12-18 22:48:27 +01:00
parent 716db744b9
commit cdf49b0bbe

View file

@ -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',