From 42994ae39d4de1843398919be01d69d8b811da16 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 24 May 2013 21:55:13 -0700 Subject: [PATCH] fixed new series id in addseries.collection --- UI/AddSeries/Collection.js | 5 +---- UI/AddSeries/Existing/ImportSeriesView.js | 5 ----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/UI/AddSeries/Collection.js b/UI/AddSeries/Collection.js index 2d7b73808..41e1a2c31 100644 --- a/UI/AddSeries/Collection.js +++ b/UI/AddSeries/Collection.js @@ -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; } }); diff --git a/UI/AddSeries/Existing/ImportSeriesView.js b/UI/AddSeries/Existing/ImportSeriesView.js index d2fd617ab..026cc386d 100644 --- a/UI/AddSeries/Existing/ImportSeriesView.js +++ b/UI/AddSeries/Existing/ImportSeriesView.js @@ -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');