pmr_app/app/views/public/comments/create.js.erb
Nicolas Bally 428372d6f9 initial
2016-02-08 10:27:25 +01:00

10 lines
316 B
Plaintext

var message = "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 %>