From e65231c9069599ac88835dda733a924535e164fa Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 1 Mar 2017 17:47:08 +0300 Subject: juick-www: fix pm issues (width and ctrl-enter) --- juick-www/src/main/static/scripts.js | 3 +++ juick-www/src/main/static/style.css | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 8432c18a..636e7be8 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -587,6 +587,9 @@ ready(function () { }; document.querySelectorAll('textarea.replypm').forEach(function (e) { e.addEventListener('click', insertPMButtons); + e.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 46af7b81..e3f2959a 100644 --- a/juick-www/src/main/static/style.css +++ b/juick-www/src/main/static/style.css @@ -276,9 +276,6 @@ article .tags>a, .msg-tags>a { overflow: hidden; width: 700px; } -.msg { - margin: 10px 0 20px 0; -} .ads { background: #FFF; margin: 8px 0 16px 58px; @@ -303,7 +300,6 @@ article .tags>a, .msg-tags>a { line-height: 140%; margin-bottom: 20px; padding: 20px; - width: 640px; } .msg-menu { float: right; -- cgit v1.2.3