From d333e7316d49b43f24f55239b8fe8fb0807cd773 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 18 Feb 2013 16:07:07 -0500 Subject: [PATCH] fixes #389 --- app/views/forum_posts/_forum_post.html.erb | 1 + app/views/forum_posts/new.js.erb | 2 +- app/views/forum_topics/show.html.erb | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/forum_posts/_forum_post.html.erb b/app/views/forum_posts/_forum_post.html.erb index 71b989a7e..d763c33fa 100644 --- a/app/views/forum_posts/_forum_post.html.erb +++ b/app/views/forum_posts/_forum_post.html.erb @@ -24,6 +24,7 @@
  • <%= link_to "Delete", forum_post_path(forum_post.id), :confirm => "Do you really want to delete this post?", :method => :delete, :remote => true %>
  • <% end %>
  • <%= link_to "Edit", edit_forum_post_path(forum_post.id) %>
  • +
  • <%= link_to "Permalink", forum_post_path(forum_post) %>
  • <% end %> diff --git a/app/views/forum_posts/new.js.erb b/app/views/forum_posts/new.js.erb index 7da7750cc..389c17dd5 100644 --- a/app/views/forum_posts/new.js.erb +++ b/app/views/forum_posts/new.js.erb @@ -1,4 +1,4 @@ -$("#forum_post_body").val(<%= raw @forum_post.body.to_json %>); +$("#forum_post_body").val($("#forum_post_body").val() + <%= raw @forum_post.body.to_json %>); $("#topic-response").show(); $('html, body').animate({ diff --git a/app/views/forum_topics/show.html.erb b/app/views/forum_topics/show.html.erb index d523eed21..b37ec2d5d 100644 --- a/app/views/forum_topics/show.html.erb +++ b/app/views/forum_topics/show.html.erb @@ -35,7 +35,6 @@