1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-03-06 19:59:36 +00:00
Radarr/UI/Release/Collection.js

22 lines
523 B
JavaScript
Raw Normal View History

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