From 722c3e519681c86d17b4d021f5c74255d3e5169c Mon Sep 17 00:00:00 2001 From: Killy Date: Tue, 24 Oct 2017 16:42:03 +0300 Subject: www: remove unused code --- juick-www/src/main/static/scripts.js | 18 ------------------ 1 file changed, 18 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 08c02a9e..619ec7a0 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -386,24 +386,6 @@ function showCommentForm(mid, rid) { } } -function showCommentFooter(e, mid, rid) { - let a = e.closest('article'); - if (!a.querySelector('footer.comm')) { - let form = replyForm(mid, rid); - let footer = document.createElement('footer'); - footer.setAttribute('class', 'comm'); - footer.appendChild(taWrapper()); - let subm = document.createElement('input'); - subm.setAttribute('type', 'submit'); - subm.setAttribute('value', 'OK'); - footer.appendChild(subm); - form.appendChild(footer); - a.appendChild(form); - autosize(a.querySelector('textarea')); - } - a.querySelector('textarea').focus(); -} - function attachInput() { let inp = document.createElement('input'); inp.setAttribute('type', 'file'); -- cgit v1.2.3