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

15 lines
413 B
JavaScript
Raw Normal View History

2013-05-01 22:42:30 +00:00
"use strict";
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-05-01 22:42:30 +00:00
});