mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 10:17:47 +00:00
14 lines
413 B
JavaScript
14 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);
|
|
}
|
|
});
|
|
});
|