mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
'use strict';
|
||||
define(['app', 'Release/Model', 'backbone.pageable'], function (app, SeriesModel, PagableCollection) {
|
||||
NzbDrone.Release.Collection = PagableCollection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/release',
|
||||
model: NzbDrone.Release.Model,
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'Release/Model',
|
||||
'backbone.pageable'
|
||||
], function (ReleaseModel, PagableCollection) {
|
||||
return PagableCollection.extend({
|
||||
url : window.ApiRoot + '/release',
|
||||
model: ReleaseModel,
|
||||
|
||||
mode: 'client',
|
||||
mode: 'client',
|
||||
|
||||
state: {
|
||||
pageSize: 2000
|
||||
},
|
||||
state: {
|
||||
pageSize: 2000
|
||||
},
|
||||
|
||||
fetchEpisodeReleases: function (episodeId) {
|
||||
return this.fetch({ data: { episodeId: episodeId }});
|
||||
}
|
||||
fetchEpisodeReleases: function (episodeId) {
|
||||
return this.fetch({ data: { episodeId: episodeId }});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user