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

13 lines
398 B
JavaScript
Raw Normal View History

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,
defaultSortKey: 'title',
defaultSortDir: '-1',
comparator: function (model) {
return model.get(this.defaultSortKey);
}
});
2013-02-09 10:04:18 +00:00
});