From b4050b7b1d2128fb2107cdbc0aedf72bc6072667 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 11 Nov 2014 14:19:17 +0100 Subject: [PATCH] Fixed bad JS assignment --- public_html/js/Presenters/TagPresenter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/js/Presenters/TagPresenter.js b/public_html/js/Presenters/TagPresenter.js index 138f145a..aeb60909 100644 --- a/public_html/js/Presenters/TagPresenter.js +++ b/public_html/js/Presenters/TagPresenter.js @@ -144,7 +144,8 @@ App.Presenters.TagPresenter = function( } function mergeButtonClicked(e) { - if (targetTag = window.prompt('What tag should this be merged to?')) { + var targetTag = window.prompt('What tag should this be merged to?'); + if (targetTag) { promise.wait(api.put('/tags/' + tag.name + '/merge', {targetTag: targetTag})) .then(function(response) { router.navigate('#/tags');