# HG changeset patch # User neko259 # Date 2016-05-04 13:10:44 # Node ID 427880bd2dd5ccc9ba865074bf3a24b535fe2fd6 # Parent bf093d2460822fdd0e4892e49f3ba2ceb0209d3e Move cursor to text area after replying a post diff --git a/boards/static/js/thread.js b/boards/static/js/thread.js --- a/boards/static/js/thread.js +++ b/boards/static/js/thread.js @@ -80,6 +80,9 @@ function addQuickReply(postId) { } showFormAfter(blockToInsert); } + + var textarea = document.getElementsByTagName('textarea')[0]; + moveCaretToEnd(textarea); } function addQuickQuote(postId) { @@ -107,6 +110,7 @@ function addQuickQuote(postId) { textAreaJq.val(textAreaJq.val()+ textToAdd); textAreaJq.focus(); + var textarea = document.getElementsByTagName('textarea')[0]; moveCaretToEnd(textarea); }