Skip to content
Extraits de code Groupes Projets
Valider 36eb2835 rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Merge pull request #6302 from AugierLe42e/comment-button-misbehaving

[Quickfix] Fixing comment button misbehaving
parents 40ef382a 75b31789
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
- if user_signed_in? - if user_signed_in?
= form_tag( post_comments_path(post_id), id: "new_comment_on_#{post_id}", class: "new_comment", autocomplete: "off") do = form_tag( post_comments_path(post_id), id: "new_comment_on_#{post_id}", class: "new_comment", autocomplete: "off") do
%fieldset %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") = 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" = submit_tag t(".comment"), :id => "comment_submit_#{post_id}", "data-disable-with" => t(".commenting"), :class => "btn btn-primary btn-block"
.clearfix
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter