Fixed bad JS assignment

This commit is contained in:
Marcin Kurczewski 2014-11-11 14:19:17 +01:00
parent f773e6c66d
commit b4050b7b1d

View file

@ -144,7 +144,8 @@ App.Presenters.TagPresenter = function(
} }
function mergeButtonClicked(e) { 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})) promise.wait(api.put('/tags/' + tag.name + '/merge', {targetTag: targetTag}))
.then(function(response) { .then(function(response) {
router.navigate('#/tags'); router.navigate('#/tags');