From d9b9ffe8a23732469ec4b253d7e763035f745526 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 27 Dec 2013 14:27:27 -0800 Subject: [PATCH] Fixed: Add series won't incorrectly mark the series as existing when it fails to add --- src/UI/AddSeries/SearchResultView.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/UI/AddSeries/SearchResultView.js b/src/UI/AddSeries/SearchResultView.js index e8b24435c..eced403ec 100644 --- a/src/UI/AddSeries/SearchResultView.js +++ b/src/UI/AddSeries/SearchResultView.js @@ -147,12 +147,11 @@ define( this.model.set('seasonFolder', seasonFolder); var self = this; - - SeriesCollection.add(this.model); - var promise = this.model.save(); promise.done(function () { + SeriesCollection.add(self.model); + self.close(); icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');