mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
broken
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
"use strict";
|
||||
define(['app', 'Series/SeriesModel'], function () {
|
||||
NzbDrone.AddSeries.Collection = Backbone.Collection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/series/lookup',
|
||||
model: NzbDrone.Series.SeriesModel,
|
||||
define(
|
||||
[
|
||||
'App',
|
||||
'backbone',
|
||||
'Series/SeriesModel'
|
||||
], function (App, Backbone, SeriesModel) {
|
||||
return Backbone.Collection.extend({
|
||||
url : Constants.ApiRoot + '/series/lookup',
|
||||
model: SeriesModel,
|
||||
|
||||
parse: function (response) {
|
||||
parse: function (response) {
|
||||
|
||||
_.each(response, function (model) {
|
||||
model.id = undefined;
|
||||
});
|
||||
_.each(response, function (model) {
|
||||
model.id = undefined;
|
||||
});
|
||||
|
||||
return response;
|
||||
}
|
||||
return response;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user