diff --git a/source/Ox.UI/js/List/CustomList.js b/source/Ox.UI/js/List/CustomList.js index 7088973d..e243ddaf 100644 --- a/source/Ox.UI/js/List/CustomList.js +++ b/source/Ox.UI/js/List/CustomList.js @@ -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',