From 0eaf95b53d609c4e4598dbd35904c9e5b67114cf Mon Sep 17 00:00:00 2001 From: z9hang Date: Thu, 25 Sep 2014 16:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=20#1284=20=E5=85=AC=E5=91=8A=E8=B4=B4=E5=90=A7?= =?UTF-8?q?=EF=BC=9A=E7=BC=96=E8=BE=91=E5=9B=9E=E5=B8=96=E4=B8=AD=E2=80=9C?= =?UTF-8?q?=E7=BD=AE=E9=A1=B6=E2=80=9D=E3=80=81=E2=80=9C=E9=94=81=E5=AE=9A?= =?UTF-8?q?=E2=80=9D=E6=93=8D=E4=BD=9C=E4=B8=8D=E5=8F=AF=E7=94=A8,?= =?UTF-8?q?=E5=9B=9E=E5=B8=96=E4=B8=8D=E5=8F=AF=E2=80=98=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E2=80=99=E3=80=81=E2=80=98=E9=94=81=E5=AE=9A=E2=80=99=EF=BC=8C?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E8=BF=99=E4=B8=A4=E9=A1=B9=EF=BC=8C=E4=B8=94?= =?UTF-8?q?=E5=B0=86=E4=B8=BB=E9=A2=98=E4=BF=AE=E6=94=B9=E4=B8=BA=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/memos/edit.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/memos/edit.html.erb b/app/views/memos/edit.html.erb index 35543398f..04d95ae86 100644 --- a/app/views/memos/edit.html.erb +++ b/app/views/memos/edit.html.erb @@ -1,5 +1,5 @@ -<% @replying ||= false %> +<% @replying = !@memo.parent.nil? %>

<%=l(:label_memo_edit)%>

<%= labelled_form_for(@memo, :url => forum_memo_path(@memo.forum_id, @memo)) do |f| %> <% if @memo.errors.any? %> @@ -13,7 +13,7 @@ <% end %>
-

<%= f.text_field :subject, :required => true, :size => 96 %>

+

<%= f.text_field :subject, :required => true, :size => 96 ,:readonly => @replying%>

<% unless @replying %> <% if @memo.safe_attribute? 'sticky' %>