summaryrefslogtreecommitdiff
path: root/templates/main.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-06-14 18:34:09 +0200
committerczaks <marcin@6irc.net>2014-06-14 18:34:09 +0200
commita4dc0d03b75b92155d6c2573278c16d5c781af1c (patch)
tree255ed69e4ba16961bfdee15532a8b0d14c186e82 /templates/main.js
parentb12612ac576f0bb2c4f82e55d0596d40db77150d (diff)
parent91570ef083c20e779596583def6f9a7ce6a751bd (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Diffstat (limited to 'templates/main.js')
-rw-r--r--templates/main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/main.js b/templates/main.js
index 231b8043..f7b99a42 100644
--- a/templates/main.js
+++ b/templates/main.js
@@ -155,7 +155,7 @@ function highlightReply(id) {
if (post)
post.className += ' highlighted';
}
- return false;
+ return true;
}
function generatePassword() {
@@ -187,6 +187,8 @@ function dopost(form) {
function citeReply(id, with_link) {
var textarea = document.getElementById('body');
+
+ if (!textarea) return false;
if (document.selection) {
// IE