aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main')
-rw-r--r--juick-www/src/main/static/scripts.js8
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 5ee8ae6ba..b06ddab07 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';