mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 11:05:44 +00:00
21 lines
523 B
JavaScript
21 lines
523 B
JavaScript
'use strict';
|
||
define(
|
||
[
|
||
'Release/Model',
|
||
'backbone.pageable'
|
||
], function (ReleaseModel, PagableCollection) {
|
||
return PagableCollection.extend({
|
||
url : window.ApiRoot + '/release',
|
||
model: ReleaseModel,
|
||
|
||
mode: 'client',
|
||
|
||
state: {
|
||
pageSize: 2000
|
||
},
|
||
|
||
fetchEpisodeReleases: function (episodeId) {
|
||
return this.fetch({ data: { episodeId: episodeId }});
|
||
}
|
||
});
|
||
});
|