2013-05-01 22:42:30 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
define(['app', 'Series/SeriesModel'], function () {
|
2013-02-14 18:01:30 +00:00
|
|
|
|
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-05-01 22:42:30 +00:00
|
|
|
|
});
|