From 6840b088c90273f490a397a3c7ff2d67a58549a0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 29 Aug 2017 12:40:33 +0300 Subject: www: hide newmessage form --- juick-www/src/main/static/scripts.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'juick-www/src/main/static/scripts.js') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 0254c5f1..984f0e5c 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -271,7 +271,7 @@ function postformListener(formEl, ev) { function unfoldPostForm() { if (window.location.pathname === '/' && window.location.hash === '#post') { - document.querySelector('#newmessage>div').style.display = 'block'; + document.querySelector('#newmessage').style.display = 'block'; var ta = document.querySelector('#newmessage textarea'); ta.style.minHeight = '70px'; ta.focus(); @@ -775,8 +775,6 @@ ready(function () { form.addEventListener('submit', newMessage); newMessageBlock.querySelector('textarea').addEventListener('click', function (e) { var parent = e.target.parentNode; - parent.querySelector('div').style.display = 'block'; - e.target.style.minHeight = '70px'; e.target.addEventListener('keypress', function (e) { postformListener(e.target, e); }); -- cgit v1.2.3