mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
17 lines
455 B
JavaScript
17 lines
455 B
JavaScript
"use strict";
|
|
define(['app', 'Release/Model'], function () {
|
|
NzbDrone.Release.Collection = Backbone.PageableCollection.extend({
|
|
url : NzbDrone.Constants.ApiRoot + '/release',
|
|
model: NzbDrone.Release.Model,
|
|
|
|
mode: 'client',
|
|
|
|
state: {
|
|
pageSize: 2000
|
|
},
|
|
|
|
fetchEpisodeReleases: function (episodeId) {
|
|
return this.fetch({ data: { episodeId: episodeId }});
|
|
}
|
|
});
|
|
});
|