Fix tags updating after editing a post.

This commit is contained in:
Ibrahim Awwal
2012-09-13 04:14:19 -07:00
parent 62b047f3c2
commit 30b4918e77

View File

@@ -118,9 +118,7 @@ if Backbone?
tags: newTags
error: DiscussionUtil.formErrorHandler(@$(".edit-post-form-errors"))
success: (response, textStatus) =>
# TODO: Move this out of the callback, this makes it feel sluggish
@editView.$(".edit-post-title").val("").attr("prev-text", "")
@editView.$(".edit-post-body textarea").val("").attr("prev-text", "")
@editView.$(".edit-post-tags").val("")
@@ -130,10 +128,11 @@ if Backbone?
@model.set
title: newTitle
body: newBody
tags: newTags
tags: response.content.tags
@createShowView()
@renderShowView()
@renderTags()
createEditView: () ->