2013-06-05 05:38:15 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
define(['app', 'Release/Model'], function () {
|
|
|
|
|
NzbDrone.Release.Collection = Backbone.PageableCollection.extend({
|
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/release',
|
|
|
|
|
model: NzbDrone.Release.Model,
|
|
|
|
|
|
2013-06-07 00:17:57 +00:00
|
|
|
|
mode: 'client',
|
|
|
|
|
|
|
|
|
|
fetchEpisodeReleases: function (episodeId) {
|
|
|
|
|
return this.fetch({ data: { episodeId: episodeId }});
|
|
|
|
|
}
|
2013-06-05 05:38:15 +00:00
|
|
|
|
});
|
|
|
|
|
});
|