From c47199cabd70ba6fb1bc8f617b1995bb3216155c Mon Sep 17 00:00:00 2001 From: Flowers Safety Date: Sat, 30 Jul 2016 16:39:30 +0600 Subject: change some names --- juick-www/src/main/static/scripts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 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('

Пожалуйста, введите текст сообщения

'); 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'; -- cgit v1.2.3