Fixed bad JS assignment
This commit is contained in:
parent
f773e6c66d
commit
b4050b7b1d
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue