sonarr-repo-only/UI/Series/SeriesCollection.js

24 lines
555 B
JavaScript
Raw Normal View History

'use strict';
define(
[
'backbone',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
2013-06-30 19:57:26 +00:00
var Collection = Backbone.Collection.extend({
2013-09-14 07:10:19 +00:00
url : window.NzbDrone.ApiRoot + '/series',
model: SeriesModel,
2013-05-02 07:09:35 +00:00
comparator: function (model) {
return model.get('title');
},
2013-05-02 07:09:35 +00:00
state: {
sortKey: 'title',
order : -1
}
});
2013-06-30 19:57:26 +00:00
var collection = new Collection();
return collection;
});