fixed new series id in addseries.collection

This commit is contained in:
kay.one 2013-05-24 21:55:13 -07:00
parent e1b9fb2f16
commit 42994ae39d
2 changed files with 1 additions and 9 deletions

View File

@ -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;
}
});

View File

@ -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');