mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed default sorting for series grid
This commit is contained in:
parent
b4242f9fb2
commit
3983a36492
4 changed files with 35 additions and 10 deletions
|
@ -1,6 +1,13 @@
|
|||
define(['app', 'Series/SeriesModel'], function () {
|
||||
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/series',
|
||||
model: NzbDrone.Series.SeriesModel
|
||||
model: NzbDrone.Series.SeriesModel,
|
||||
|
||||
defaultSortKey: 'title',
|
||||
defaultSortDir: '-1',
|
||||
|
||||
comparator: function (model) {
|
||||
return model.get(this.defaultSortKey);
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue