##// END OF EJS Templates
Move cursor to text area after replying a post
neko259 -
r1514:427880bd default
parent child Browse files
Show More
@@ -80,6 +80,9 b' function addQuickReply(postId) {'
80 }
80 }
81 showFormAfter(blockToInsert);
81 showFormAfter(blockToInsert);
82 }
82 }
83
84 var textarea = document.getElementsByTagName('textarea')[0];
85 moveCaretToEnd(textarea);
83 }
86 }
84
87
85 function addQuickQuote(postId) {
88 function addQuickQuote(postId) {
@@ -107,6 +110,7 b' function addQuickQuote(postId) {'
107 textAreaJq.val(textAreaJq.val()+ textToAdd);
110 textAreaJq.val(textAreaJq.val()+ textToAdd);
108
111
109 textAreaJq.focus();
112 textAreaJq.focus();
113
110 var textarea = document.getElementsByTagName('textarea')[0];
114 var textarea = document.getElementsByTagName('textarea')[0];
111 moveCaretToEnd(textarea);
115 moveCaretToEnd(textarea);
112 }
116 }
General Comments 0
You need to be logged in to leave comments. Login now