From 75b317895d6ae591316d181bcdbb4e4455e5c944 Mon Sep 17 00:00:00 2001 From: Augier <contact@c-henry.fr> Date: Fri, 7 Aug 2015 09:48:06 +0200 Subject: [PATCH] Fixing comment button misbehaving --- app/views/comments/_new_comment.mobile.haml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/comments/_new_comment.mobile.haml b/app/views/comments/_new_comment.mobile.haml index 7e8ea3d4c8..c699076426 100644 --- a/app/views/comments/_new_comment.mobile.haml +++ b/app/views/comments/_new_comment.mobile.haml @@ -9,8 +9,7 @@ - if user_signed_in? = form_tag( post_comments_path(post_id), id: "new_comment_on_#{post_id}", class: "new_comment", autocomplete: "off") do %fieldset - .control-group - = hidden_field_tag :post_id, post_id, id: "post_id_on_#{post_id}" + = hidden_field_tag :post_id, post_id, id: "post_id_on_#{post_id}" + .form-group = text_area_tag :text, nil, class: "col-md-12 comment_box form-control form-group", id: "comment_text_on_#{post_id}", placeholder: t(".comment") - = submit_tag t(".comment"), id: "comment_submit_#{post_id}", 'data-disable-with' => t(".commenting"), class: "btn btn-primary btn-block" - .clearfix + = submit_tag t(".comment"), :id => "comment_submit_#{post_id}", "data-disable-with" => t(".commenting"), :class => "btn btn-primary btn-block" -- GitLab