summaryrefslogtreecommitdiff
path: root/templates/main.js
diff options
context:
space:
mode:
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 7796565c..294a752d 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