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