mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Merge pull request #1041 from geogolem/sortingFixForAddedMovies
fixes sorting after adding movies
This commit is contained in:
commit
597a070383
1 changed files with 4 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue