Fixed double reload when editing tags
This commit is contained in:
parent
8f56018140
commit
d07745a6cd
1 changed files with 0 additions and 4 deletions
|
@ -115,10 +115,6 @@ 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) {
|
||||||
tag = response.json;
|
|
||||||
render();
|
|
||||||
renderPosts(posts);
|
|
||||||
tagList.refreshTags();
|
|
||||||
router.navigateInplace('#/tag/' + tag.name);
|
router.navigateInplace('#/tag/' + tag.name);
|
||||||
}).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.');
|
||||||
|
|
Loading…
Reference in a new issue