mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
22 lines
532 B
JavaScript
22 lines
532 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'Release/Model',
|
|
'backbone.pageable'
|
|
], function (ReleaseModel, PagableCollection) {
|
|
return PagableCollection.extend({
|
|
url : window.NzbDrone.ApiRoot + '/release',
|
|
model: ReleaseModel,
|
|
|
|
mode: 'client',
|
|
|
|
state: {
|
|
pageSize: 2000
|
|
},
|
|
|
|
fetchEpisodeReleases: function (episodeId) {
|
|
return this.fetch({ data: { episodeId: episodeId }});
|
|
}
|
|
});
|
|
});
|