diff options
author | Vitaly Takmazov | 2017-10-23 23:41:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-10-23 23:41:50 +0300 |
commit | 9c4f1dfb2f923fd1bfde9c17a469d9e7dd9e9fe2 (patch) | |
tree | 828e1fee7413596e2b66c64764856e1e7811a312 /juick-www/src/main | |
parent | 5f11fa956421ecc901d5faf331121a21532fd579 (diff) |
www: comment button now open thread
Diffstat (limited to 'juick-www/src/main')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 12 |
1 files 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( |