mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
|
@ -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 }});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue