From 9c4f1dfb2f923fd1bfde9c17a469d9e7dd9e9fe2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 23 Oct 2017 23:41:50 +0300 Subject: www: comment button now open thread --- juick-www/src/main/static/scripts.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 321de92d..ecef6f1a 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -725,14 +725,10 @@ ready(function () { e.preventDefault(); }); }); - document.querySelectorAll('.l .a-comment').forEach(function (e) { - e.addEventListener('click', function (e) { - showCommentFooter( - e.target, - e.target.closest('article').getAttribute('data-mid')); - e.preventDefault(); - }); - }); + let threadTextarea = document.querySelector('.msgthread .ta-wrapper textarea'); + if (threadTextarea) { + threadTextarea.focus(); + } document.querySelectorAll('.l .a-privacy').forEach(function (e) { e.addEventListener('click', function (e) { setPrivacy( -- cgit v1.2.3