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

19 lines
463 B
JavaScript
Raw Normal View History

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