2013-04-23 22:56:51 -07:00
|
|
|
|
"use strict";
|
2013-06-14 16:18:37 -07:00
|
|
|
|
define(['app', 'Series/SeasonModel', 'backbone.pageable'], function (App, SeasonModel, PageAbleCollection) {
|
|
|
|
|
NzbDrone.Series.SeasonCollection = PageAbleCollection.extend({
|
2013-03-29 16:28:58 -07:00
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/season',
|
2013-05-12 08:53:39 -07:00
|
|
|
|
model: NzbDrone.Series.SeasonModel,
|
|
|
|
|
|
|
|
|
|
mode: 'client',
|
|
|
|
|
|
|
|
|
|
state: {
|
|
|
|
|
sortKey : 'seasonNumber',
|
|
|
|
|
order : 1,
|
|
|
|
|
pageSize: 1000000
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
sortKey: null,
|
|
|
|
|
order : null
|
|
|
|
|
}
|
2013-03-03 14:42:26 -08:00
|
|
|
|
});
|
2013-06-18 18:02:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return NzbDrone.Series.SeasonCollection;
|
2013-03-03 14:42:26 -08:00
|
|
|
|
});
|