1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Release/Collection.js

20 lines
487 B
JavaScript
Raw Normal View History

'use strict';
define(
[
2013-09-26 06:49:22 +03:00
'backbone',
'Release/Model'
], function (Backbone, ReleaseModel) {
return Backbone.Collection.extend({
2013-09-14 10:10:19 +03:00
url : window.NzbDrone.ApiRoot + '/release',
model: ReleaseModel,
state: {
pageSize: 2000
},
2013-06-07 03:50:17 +03:00
fetchEpisodeReleases: function (episodeId) {
return this.fetch({ data: { episodeId: episodeId }});
}
});
});