##// END OF EJS Templates
Fixed adding replies to posts in thread
neko259 -
r439:2ad39e04 default
parent child Browse files
Show More
@@ -31,7 +31,5 b''
31
31
32 addImgPreview();
32 addImgPreview();
33
33
34 addMarkPanel();
35
36 addRefLinkPreview();
34 addRefLinkPreview();
37 });
35 });
@@ -63,10 +63,10 b' function moveCaretToEnd(el) {'
63
63
64 function addQuickReply(postId) {
64 function addQuickReply(postId) {
65 var textToAdd = '>>' + postId + '\n\n';
65 var textToAdd = '>>' + postId + '\n\n';
66 var textAreaId = '#id_text';
66 var textAreaId = 'textarea';
67 $(textAreaId).val($(textAreaId).val()+ textToAdd);
67 $(textAreaId).val($(textAreaId).val()+ textToAdd);
68
68
69 var textarea = document.getElementById('id_text');
69 var textarea = document.getElementsByTagName('textarea')[0];
70 $(textAreaId).focus();
70 $(textAreaId).focus();
71 moveCaretToEnd(textarea);
71 moveCaretToEnd(textarea);
72
72
General Comments 0
You need to be logged in to leave comments. Login now