From 76921b184d6c7792870d997ca29892c8af18ae78 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 16 Oct 2015 10:42:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A8=E8=AE=BA=E5=8C=BA=E5=8D=95=E4=B8=AA?= =?UTF-8?q?=E5=B8=96=E5=AD=90=E7=9A=84=E4=BA=8C=E7=BA=A7=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/messages/_reply_message.html.erb | 4 ++-- app/views/messages/quote.js.erb | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/messages/_reply_message.html.erb b/app/views/messages/_reply_message.html.erb index 3e9550ee2..a859a088a 100644 --- a/app/views/messages/_reply_message.html.erb +++ b/app/views/messages/_reply_message.html.erb @@ -16,8 +16,8 @@
<%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'new_form'} do |f| %> - - + +
diff --git a/app/views/messages/quote.js.erb b/app/views/messages/quote.js.erb index 78ba0c142..eee820c61 100644 --- a/app/views/messages/quote.js.erb +++ b/app/views/messages/quote.js.erb @@ -9,6 +9,8 @@ $("img").removeAttr("align");*/ if($("#reply_message_<%= @message.id%>").length > 0) { $("#reply_message_<%= @message.id%>").replaceWith("<%= escape_javascript(render :partial => 'reply_message', :locals => {:reply => @message,:temp =>@temp,:subject =>@subject}) %>"); $(function(){ + $('#reply_subject').val("<%= raw escape_javascript(@subject) %>"); + $('#quote_quote').val("<%= raw escape_javascript(@temp.content.html_safe) %>"); init_activity_KindEditor_data(<%= @message.id%>,null,"85%"); }); }else if($("#reply_to_message_<%= @message.id%>").length >0) {