fixed new series id in addseries.collection

pull/4/head
kay.one 12 years ago
parent e1b9fb2f16
commit 42994ae39d

@ -5,10 +5,7 @@ define(['app', 'Series/SeriesModel'], function () {
model: NzbDrone.Series.SeriesModel, model: NzbDrone.Series.SeriesModel,
parse: function (response) { parse: function (response) {
_.each(response, function (model) { response.id = undefined;
model.id = undefined;
});
return response; return response;
} }
}); });

@ -18,11 +18,6 @@ define([
'click .x-add': 'addSeries' 'click .x-add': 'addSeries'
}, },
initialize: function () {
this.model.set('isExisting', true);
this.model.set('id', undefined);
},
addSeries: function () { addSeries: function () {
var icon = this.ui.addButton.find('icon'); var icon = this.ui.addButton.find('icon');
icon.removeClass('icon-plus').addClass('icon-spin icon-spinner disabled'); icon.removeClass('icon-plus').addClass('icon-spin icon-spinner disabled');

Loading…
Cancel
Save