aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/static/scripts.js4
-rw-r--r--juick-www/src/main/static/style.css4
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html16
3 files changed, 9 insertions, 15 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 0254c5f19..984f0e5c5 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 c596da8ae..b24ee23fe 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;
}
diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html b/juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html
index 1333351bc..e21002b8f 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html
@@ -1,10 +1,8 @@
-<form action="/post" method="post" enctype="multipart/form-data">
- <section id="newmessage">
- <textarea name="body" placeholder="{{ i18n("messages","postForm.newMessage") }}"></textarea>
- <div>
- <input type="text" class="img" name="img" placeholder="{{ i18n("messages","postForm.imageLink") }} ({{ i18n("messages","postForm.imageFormats") }})"/> {{ i18n("messages","postForm.or") }} <a href="#">{{ i18n("messages","postForm.upload") }}</a><br/>
- <input type="text" class="tags" name="tags" placeholder="{{ i18n("messages","postForm.tags") }}"/><br/>
- <input type="submit" class="subm" value="{{ i18n("messages","postForm.submit") }}"/>
- </div>
- </section>
+<form id="newmessage" action="/post" method="post" enctype="multipart/form-data">
+ <textarea name="body" placeholder="{{ i18n("messages","postForm.newMessage") }}"></textarea>
+ <div>
+ <input type="text" class="img" name="img" placeholder="{{ i18n("messages","postForm.imageLink") }} ({{ i18n("messages","postForm.imageFormats") }})"/> {{ i18n("messages","postForm.or") }} <a href="#">{{ i18n("messages","postForm.upload") }}</a><br/>
+ <input type="text" class="tags" name="tags" placeholder="{{ i18n("messages","postForm.tags") }}"/><br/>
+ <input type="submit" class="subm" value="{{ i18n("messages","postForm.submit") }}"/>
+ </div>
</form> \ No newline at end of file