If the comment has errors, show the textarea with the error message
This commit is contained in:
@@ -10,3 +10,8 @@ $('a.publish-comment').on({
|
||||
}
|
||||
});
|
||||
|
||||
<% if @comment.errors.any? %>
|
||||
$('a.publish-comment').hide();
|
||||
$('#js-comment-form-annotation').toggle();
|
||||
$('#js-comment-form-annotation textarea').focus();
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user