From 958be06ff1387fa3b7379aefac96976bcd5d6c3d Mon Sep 17 00:00:00 2001 From: Hexagon Date: Sat, 13 Nov 2010 13:54:48 +0100 Subject: [PATCH] Removed duplicate id generation in _new_comment form --- app/views/comments/_new_comment.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/comments/_new_comment.html.haml b/app/views/comments/_new_comment.html.haml index b7c1fbbf4..96b14fe86 100644 --- a/app/views/comments/_new_comment.html.haml +++ b/app/views/comments/_new_comment.html.haml @@ -2,12 +2,12 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. -= form_for Comment.new, :remote => true do |comment| += form_for Comment.new, :html => {:id => "new_comment_on_#{post.id}" }, :remote => true do |comment| %p = label_tag "comment_text_on_#{post.id}", t('.comment') = comment.text_area :text, :rows => 1, :id => "comment_text_on_#{post.id}", :class => "comment_box" - = comment.hidden_field :post_id, :value => post.id + = comment.hidden_field :post_id, :id => "post_id_on_#{post.id}", :value => post.id %p{:style => "text-align:right;"} - = comment.submit t('.comment'), :class => "comment_submit button" + = comment.submit t('.comment'), :id => "comment_submit_#{post.id}", :class => "comment_submit button"