1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed sorting on episode tables

This commit is contained in:
Mark McDowall 2013-07-21 16:46:45 -07:00
parent 3b4a1986c5
commit efbf89fac9
2 changed files with 15 additions and 7 deletions

View File

@ -37,7 +37,8 @@ define(
cell : ToggleCell, cell : ToggleCell,
trueClass : 'icon-bookmark', trueClass : 'icon-bookmark',
falseClass: 'icon-bookmark-empty', falseClass: 'icon-bookmark-empty',
tooltip : 'Toggle monitored status' tooltip : 'Toggle monitored status',
sortable : false
}, },
{ {
name : 'episodeNumber', name : 'episodeNumber',
@ -48,8 +49,9 @@ define(
}, },
{ {
name : 'this', name : 'this',
label: 'Title', label : 'Title',
cell : EpisodeTitleCell cell : EpisodeTitleCell,
sortable: false
}, },
{ {
name : 'airDate', name : 'airDate',
@ -58,8 +60,9 @@ define(
} , } ,
{ {
name : 'status', name : 'status',
label: 'Status', label : 'Status',
cell : EpisodeStatusCell cell : EpisodeStatusCell,
sortable: false
} }
], ],

View File

@ -32,6 +32,11 @@ define(
} }
return 0; return 0;
},
state: {
sortKey: 'episodeNumber',
order : -1
} }
}); });
}); });