mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Fixes sorting of movies. Fixes #53.
This commit is contained in:
parent
97095733dd
commit
1dfb4ddcd8
4 changed files with 8 additions and 42 deletions
|
@ -50,7 +50,7 @@ var Collection = PageableCollection.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
sortMappings : {
|
sortMappings : {
|
||||||
'movie' : { sortKey : 'movie.sortTitle' }
|
'movie' : { sortKey : 'movie.title' }
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize : function(options) {
|
initialize : function(options) {
|
||||||
|
|
|
@ -38,7 +38,6 @@ module.exports = Marionette.Layout.extend({
|
||||||
label : 'Title',
|
label : 'Title',
|
||||||
cell : MovieTitleCell,
|
cell : MovieTitleCell,
|
||||||
cellValue : 'this',
|
cellValue : 'this',
|
||||||
sortValue : 'sortTitle'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'profileId',
|
name : 'profileId',
|
||||||
|
@ -128,25 +127,13 @@ module.exports = Marionette.Layout.extend({
|
||||||
title : 'Title',
|
title : 'Title',
|
||||||
name : 'title'
|
name : 'title'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title : 'Seasons',
|
|
||||||
name : 'seasonCount'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title : 'Quality',
|
title : 'Quality',
|
||||||
name : 'profileId'
|
name : 'profileId'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title : 'Network',
|
title : 'In Cinemas',
|
||||||
name : 'network'
|
name : 'inCinemas'
|
||||||
},
|
|
||||||
{
|
|
||||||
title : 'Next Airing',
|
|
||||||
name : 'nextAiring'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title : 'Episodes',
|
|
||||||
name : 'percentOfEpisodes'
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -170,27 +157,6 @@ module.exports = Marionette.Layout.extend({
|
||||||
tooltip : 'Monitored Only',
|
tooltip : 'Monitored Only',
|
||||||
icon : 'icon-sonarr-monitored',
|
icon : 'icon-sonarr-monitored',
|
||||||
callback : this._setFilter
|
callback : this._setFilter
|
||||||
},
|
|
||||||
{
|
|
||||||
key : 'continuing',
|
|
||||||
title : '',
|
|
||||||
tooltip : 'Continuing Only',
|
|
||||||
icon : 'icon-sonarr-series-continuing',
|
|
||||||
callback : this._setFilter
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key : 'ended',
|
|
||||||
title : '',
|
|
||||||
tooltip : 'Ended Only',
|
|
||||||
icon : 'icon-sonarr-series-ended',
|
|
||||||
callback : this._setFilter
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key : 'missing',
|
|
||||||
title : '',
|
|
||||||
tooltip : 'Missing',
|
|
||||||
icon : 'icon-sonarr-missing',
|
|
||||||
callback : this._setFilter
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,10 +15,10 @@ var Collection = PageableCollection.extend({
|
||||||
tableName : 'movie',
|
tableName : 'movie',
|
||||||
|
|
||||||
state : {
|
state : {
|
||||||
sortKey : 'sortTitle',
|
sortKey : 'title',
|
||||||
order : -1,
|
order : 1,
|
||||||
pageSize : 100000,
|
pageSize : 100000,
|
||||||
secondarySortKey : 'sortTitle',
|
secondarySortKey : 'title',
|
||||||
secondarySortOrder : -1
|
secondarySortOrder : -1
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ var Collection = PageableCollection.extend({
|
||||||
|
|
||||||
sortMappings : {
|
sortMappings : {
|
||||||
title : {
|
title : {
|
||||||
sortKey : 'sortTitle'
|
sortKey : 'title'
|
||||||
},
|
},
|
||||||
|
|
||||||
nextAiring : {
|
nextAiring : {
|
||||||
|
|
|
@ -67,4 +67,4 @@ module.exports = Marionette.ItemView.extend({
|
||||||
_removeSortIcon : function() {
|
_removeSortIcon : function() {
|
||||||
this.ui.icon.removeClass('icon-sonarr-sort-asc icon-sonarr-sort-desc');
|
this.ui.icon.removeClass('icon-sonarr-sort-asc icon-sonarr-sort-desc');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue