mirror of https://github.com/Radarr/Radarr
fixed new series id in addseries.collection
This commit is contained in:
parent
e1b9fb2f16
commit
42994ae39d
|
@ -5,10 +5,7 @@ define(['app', 'Series/SeriesModel'], function () {
|
|||
model: NzbDrone.Series.SeriesModel,
|
||||
|
||||
parse: function (response) {
|
||||
_.each(response, function (model) {
|
||||
model.id = undefined;
|
||||
});
|
||||
|
||||
response.id = undefined;
|
||||
return response;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -18,11 +18,6 @@ define([
|
|||
'click .x-add': 'addSeries'
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
this.model.set('isExisting', true);
|
||||
this.model.set('id', undefined);
|
||||
},
|
||||
|
||||
addSeries: function () {
|
||||
var icon = this.ui.addButton.find('icon');
|
||||
icon.removeClass('icon-plus').addClass('icon-spin icon-spinner disabled');
|
||||
|
|
Loading…
Reference in New Issue