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