kaps_app/app/views/public/comments/create.js.erb
Nicolas Bally d60301e8a7 initial
2019-01-21 01:15:10 +01:00

10 lines
346 B
Plaintext

var message = "<%= qit("comment-thank","Merci beaucoup pour votre commentaire, celui-ci sera affiché après sa modération.") %>";
<% if @comment.parent_id == nil %>
$('#comments .form_place').html(message);
<% else %>
$('#comment_<%= @comment.parent_id %>').children(".child_comments").children(".child_form_place").html(message);
<% end %>