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' %>