1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-29 11:25:26 +00:00
Radarr/UI/Series/SeriesCollection.js

19 lines
463 B
JavaScript
Raw Normal View History

2013-06-22 06:24:24 +00:00
'use strict';
2013-05-01 22:42:30 +00:00
define(['app', 'Series/SeriesModel'], function () {
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
url : NzbDrone.Constants.ApiRoot + '/series',
2013-05-02 07:09:35 +00:00
model: NzbDrone.Series.SeriesModel,
comparator: function(model) {
return model.get('title');
},
2013-05-02 07:09:35 +00:00
2013-05-03 00:25:51 +00:00
state: {
2013-06-22 06:24:24 +00:00
sortKey: 'title',
order: -1
2013-05-02 07:09:35 +00:00
}
});
2013-06-19 01:02:23 +00:00
return NzbDrone.Series.SeriesCollection;
2013-05-01 22:42:30 +00:00
});