fix sort in collection list view
This commit is contained in:
parent
812e8a8345
commit
72fdc8ed4d
4 changed files with 30 additions and 6 deletions
|
|
@ -56,6 +56,29 @@ pandora.ui.collection = function() {
|
|||
columnsVisible: true,
|
||||
scrollbarVisible: true,
|
||||
})
|
||||
.bindEvent({
|
||||
columnchange: function(data) {
|
||||
var columnWidth = {};
|
||||
pandora.UI.set({collectionColumns: data.ids});
|
||||
/*
|
||||
data.ids.forEach(function(id) {
|
||||
columnWidth[id] =
|
||||
ui.collections[ui.collection].columnWidth[id]
|
||||
|| Ox.getObjectById(pandora.site.sortKeys, id).width
|
||||
});
|
||||
pandora.UI.set({collectionColumnWidth: columnWidth});
|
||||
*/
|
||||
},
|
||||
columnresize: function(data) {
|
||||
pandora.UI.set('collectionColumnWidth.' + data.id, data.width);
|
||||
},
|
||||
sort: function(data) {
|
||||
pandora.UI.set({
|
||||
collectionSort: [{key: data.key, operator: data.operator}]
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
} else if (view == 'grid') {
|
||||
that = Ox.IconList({
|
||||
borderRadius: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue