2013-02-14 18:01:30 +00:00
|
|
|
|
define(['app', 'Series/SeriesModel'], function () {
|
|
|
|
|
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
|
2013-03-29 23:28:58 +00:00
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/series',
|
2013-05-02 07:09:35 +00:00
|
|
|
|
model: NzbDrone.Series.SeriesModel,
|
|
|
|
|
|
|
|
|
|
defaultSortKey: 'title',
|
|
|
|
|
defaultSortDir: '-1',
|
|
|
|
|
|
|
|
|
|
comparator: function (model) {
|
|
|
|
|
return model.get(this.defaultSortKey);
|
|
|
|
|
}
|
2013-02-14 18:01:30 +00:00
|
|
|
|
});
|
2013-02-09 10:04:18 +00:00
|
|
|
|
});
|