From de49a5b8f60256dc8ef261c1e189c70f7d86a3bb Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 3 Feb 2015 21:33:39 -0800 Subject: [PATCH] Fixed: Add series will update UI properly --- src/UI/AddSeries/SearchResultView.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/UI/AddSeries/SearchResultView.js b/src/UI/AddSeries/SearchResultView.js index 448ab1031..01ffa22e5 100644 --- a/src/UI/AddSeries/SearchResultView.js +++ b/src/UI/AddSeries/SearchResultView.js @@ -185,8 +185,11 @@ define( }, _addSeries: function (searchForMissingEpisodes) { - this.ui.addButton.addClass('disabled'); - this.ui.addSearchButton.addClass('disabled'); + var addButton = this.ui.addButton; + var addSearchButton = this.ui.addSearchButton; + + addButton.addClass('disabled'); + addSearchButton.addClass('disabled'); var profile = this.ui.profile.val(); var rootFolderPath = this.ui.rootFolder.children(':selected').text(); @@ -216,8 +219,8 @@ define( } promise.always(function () { - self.ui.addButton.removeClass('disabled'); - self.ui.addSearchButton.removeClass('disabled'); + addButton.removeClass('disabled'); + addSearchButton.removeClass('disabled'); }); promise.done(function () {