Highlight text when creating a comment

This commit is contained in:
Fernando Blat
2017-01-14 12:52:14 +01:00
parent d253c4c09f
commit f47cef5a93
3 changed files with 65 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
<div class="comments-wrapper">
<div class="comment-input">
<%= form_for Legislation::Annotation.new, url: legislation_process_draft_version_annotations_path(@process, @draft_version), remote: true do |f| %>
<%= f.text_area :text, autofocus: true %>
<%= f.text_area :text %>
<div class="comment-actions">
<a class="cancel-comment" href="#" data-cancel-annotation><%= t('legislation.annotations.comments.cancel') %></a>