From b71d27615efd38b1a1e9734f60c6c02b529cc711 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 21 Jan 2018 11:57:27 +0300 Subject: www: drop post dialog --- juick-www/src/main/static/scripts.js | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'juick-www/src/main/static') 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'), -- cgit v1.2.3