fixed new series id in addseries.collection

pull/2/head
kay.one 12 years ago
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…
Cancel
Save