Commit d8cc00a7 by Ibrahim Awwal

Fix tags updating after editing a post.

parent 768c7f6d
......@@ -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: () ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment