2013-06-05 07:38:15 +02:00
|
|
|
|
"use strict";
|
2013-06-15 01:18:37 +02:00
|
|
|
|
define(['app', 'Release/Model', 'backbone.pageable'], function (app, SeriesModel, PagableCollection) {
|
|
|
|
|
NzbDrone.Release.Collection = PagableCollection.extend({
|
2013-06-05 07:38:15 +02:00
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/release',
|
|
|
|
|
model: NzbDrone.Release.Model,
|
|
|
|
|
|
2013-06-07 02:17:57 +02:00
|
|
|
|
mode: 'client',
|
|
|
|
|
|
2013-06-07 02:50:17 +02:00
|
|
|
|
state: {
|
|
|
|
|
pageSize: 2000
|
|
|
|
|
},
|
|
|
|
|
|
2013-06-07 02:17:57 +02:00
|
|
|
|
fetchEpisodeReleases: function (episodeId) {
|
|
|
|
|
return this.fetch({ data: { episodeId: episodeId }});
|
|
|
|
|
}
|
2013-06-05 07:38:15 +02:00
|
|
|
|
});
|
|
|
|
|
});
|