idn_app/app/views/public/comments/create.js.erb
2016-07-29 20:23:40 +02:00

10 lines
316 B
Plaintext
Executable File

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 %>