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