mirror of https://github.com/Sonarr/Sonarr
15 lines
413 B
JavaScript
15 lines
413 B
JavaScript
"use strict";
|
|
define(['app', 'Series/SeriesModel'], function () {
|
|
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
|
|
url : NzbDrone.Constants.ApiRoot + '/series',
|
|
model: NzbDrone.Series.SeriesModel,
|
|
|
|
defaultSortKey: 'title',
|
|
defaultSortDir: '-1',
|
|
|
|
comparator: function (model) {
|
|
return model.get(this.defaultSortKey);
|
|
}
|
|
});
|
|
});
|