Files
grecia/app/views/comments/new.js.erb
2019-09-10 20:02:15 +02:00

5 lines
250 B
Plaintext

<% dom_id = parent_or_commentable_dom_id(@comment.parent_id, @commentable) %>
var field_with_errors = "#js-comment-form-<%= dom_id %> #comment-body-<%= dom_id %>";
App.Comments.display_error(field_with_errors, "<%= j render("comments/errors") %>");