Sonarr/UI/Release/Collection.js

18 lines
501 B
JavaScript
Raw Normal View History

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