diff options
author | 2016-07-30 16:39:30 +0600 | |
---|---|---|
committer | 2016-07-30 16:45:46 +0600 | |
commit | c47199cabd70ba6fb1bc8f617b1995bb3216155c (patch) | |
tree | 55dd07328d3744e017740fdef55220bc81b3b79d /juick-www/src | |
parent | 599250815cff01e99b25dc01677edcaafcaf9ae1 (diff) |
change some names
Diffstat (limited to 'juick-www/src')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 5ee8ae6b..b06ddab0 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -30,7 +30,7 @@ function initWS() { if (!document.querySelector('#wsthread')) { var d = document.createElement('div'); d.id = 'wsthread'; - d.addEventListener('click', onclickNextReply); + d.addEventListener('click', nextReply); document.querySelector('body').appendChild(d); pageTitle = document.title; } @@ -157,7 +157,7 @@ function newReply(e) { updateRepliesCounter(); } -function onclickNextReply() { +function nextReply() { var li = document.querySelector('#replies>li.reply-new:first'); if (li.length) { li.classList.remove('reply-new'); @@ -202,7 +202,7 @@ function unfoldPostForm() { } } -function onsubmitNewMessage() { +function newMessage() { if (document.querySelector('#newmessage textarea').value.length == 0) { openDialog('<p class="dialogtxt">Пожалуйста, введите текст сообщения</p>'); return false; @@ -689,7 +689,7 @@ ready(function () { var newMessageBlock = document.getElementById('newmessage'); if (newMessageBlock) { var form = newMessageBlock.parentNode; - form.addEventListener('submit', onsubmitNewMessage); + form.addEventListener('submit', newMessage); newMessageBlock.querySelector('textarea').addEventListener('click', function(e) { var parent = e.target.parentNode; parent.querySelector('div').style.display = 'block'; |