diff options
author | Vitaly Takmazov | 2018-01-21 11:57:27 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-21 11:59:46 +0300 |
commit | b71d27615efd38b1a1e9734f60c6c02b529cc711 (patch) | |
tree | 17b1179b9174dd2a9db3a2d111f1d6a3105cef1e /juick-www/src/main | |
parent | 33afecbb66879c0cba018a95316a255de4cdea81 (diff) |
www: drop post dialog
Diffstat (limited to 'juick-www/src/main')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 30 | ||||
-rw-r--r-- | juick-www/src/main/webapp/WEB-INF/views/post.html | 3 |
2 files changed, 2 insertions, 31 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index afc94973..dc7745a9 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -742,36 +742,6 @@ ready(function () { e.preventDefault(); }); } - - var post = document.getElementById('post'); - if (post) { - post.addEventListener('click', (e) => { - openPostDialog(); - getTags(); - var newMessageBlock = document.getElementById('newmessage'); - if (newMessageBlock) { - newMessageBlock.addEventListener('submit', newMessage); - let ta = newMessageBlock.querySelector('textarea'); - if (window.draft) { - ta.innerHTML = window.draft; - } - ta.addEventListener('keypress', function (e) { - postformListener(e.target, e); - }); - ta.style.minHeight = '70px'; - autosize(ta); - ta.focus(); - newMessageBlock.querySelector('#tags_input') - .addEventListener('keypress', function (e) { - postformListener(e.target, e); - }); - newMessageBlock.querySelector('a').addEventListener('click', function (e) { - attachMessagePhoto(e.target); - }); - } - e.preventDefault(); - }); - } document.querySelectorAll('article').forEach(function (article) { if (Array.prototype.some.call( article.querySelectorAll('.msg-tags a'), diff --git a/juick-www/src/main/webapp/WEB-INF/views/post.html b/juick-www/src/main/webapp/WEB-INF/views/post.html index 56e48a55..ac179e92 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/post.html +++ b/juick-www/src/main/webapp/WEB-INF/views/post.html @@ -7,7 +7,8 @@ <input type="file" name="attach"/> <i>({{ i18n("messages","postForm.imageFormats") }})</i></span> </p> <p> - <textarea name="body" class="newmessage" rows="7" cols="10">{{ body }}</textarea><br/> + <textarea name="body" class="newmessage" rows="7" cols="10" placeholder="*weather It's very cold today!">{{ body }}</textarea> + <br/> <input type="submit" class="subm" value=" {{ i18n("messages","postForm.submit") }} "/> </p> </form> |