fixes sorting after adding movies

This commit is contained in:
geogolem 2017-03-06 13:09:19 -05:00
commit 07d3b1b3a5

View file

@ -21,6 +21,7 @@ var Collection = PageableCollection.extend({
origSetSorting : PageableCollection.prototype.setSorting, origSetSorting : PageableCollection.prototype.setSorting,
origAdd : PageableCollection.prototype.add, origAdd : PageableCollection.prototype.add,
origSort : PageableCollection.prototype.sort,
state : { state : {
sortKey : 'sortTitle', sortKey : 'sortTitle',
@ -69,7 +70,9 @@ var Collection = PageableCollection.extend({
}, },
sort : function(options){ sort : function(options){
//debugger; if (this.mode == 'server' && this.state.order == '-1'){
this.origSort(options);
}
}, },
save : function() { save : function() {