Fixed redirection after tag editing

Regression from b3def7f.
This commit is contained in:
rr- 2015-08-04 19:22:03 +02:00
parent 465a61ff4a
commit 7ca582186b

View file

@ -126,7 +126,7 @@ App.Presenters.TagPresenter = function(
promise.wait(api.put('/tags/' + tag.name, formData)) promise.wait(api.put('/tags/' + tag.name, formData))
.then(function(response) { .then(function(response) {
router.navigateInplace('#/tag/' + response.json.name); router.navigateInplace('#/tag/' + response.json.tag.name);
tagList.refreshTags(); tagList.refreshTags();
}).fail(function(response) { }).fail(function(response) {
window.alert(response.json && response.json.error || 'An error occured.'); window.alert(response.json && response.json.error || 'An error occured.');