From 2a5d21f8d457953167e3be3e8379b01ecdfeb606 Mon Sep 17 00:00:00 2001 From: Fernando Blat Date: Fri, 20 Jan 2017 18:28:15 +0100 Subject: [PATCH] Focus on textarea when showing the comments box --- app/views/legislation/annotations/comments.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/legislation/annotations/comments.js.erb b/app/views/legislation/annotations/comments.js.erb index c68cfc120..7718b0465 100644 --- a/app/views/legislation/annotations/comments.js.erb +++ b/app/views/legislation/annotations/comments.js.erb @@ -5,6 +5,7 @@ $('a.publish-comment').on({ e.preventDefault(); $('a.publish-comment').hide(); $('#js-comment-form-annotation').toggle(); + $('#js-comment-form-annotation textarea').focus(); return; } });