aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/static
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-08-29 12:40:33 +0300
committerGravatar Vitaly Takmazov2017-08-29 12:40:33 +0300
commit6840b088c90273f490a397a3c7ff2d67a58549a0 (patch)
treea3ee2ab2311cdb5c1ad25be6a689b1117decfd63 /juick-www/src/main/static
parentec3527d0e533e4b7ea1f3fcd68f774a2ef029c3a (diff)
www: hide newmessage form
Diffstat (limited to 'juick-www/src/main/static')
-rw-r--r--juick-www/src/main/static/scripts.js4
-rw-r--r--juick-www/src/main/static/style.css4
2 files changed, 2 insertions, 6 deletions
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);
});
diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css
index c596da8a..b24ee23f 100644
--- a/juick-www/src/main/static/style.css
+++ b/juick-www/src/main/static/style.css
@@ -163,6 +163,7 @@ body > header p {
background: #E5E5E0;
margin-bottom: 20px;
padding: 15px;
+ display: none;
}
#newmessage textarea {
border: 1px solid #CCC;
@@ -177,9 +178,6 @@ body > header p {
margin: 5px 0;
padding: 2px 4px;
}
-#newmessage > div {
- display: none;
-}
#newmessage .img {
width: 500px;
}