summaryrefslogtreecommitdiff
path: root/templates/main.js
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-06-12 15:36:01 +0000
committerczaks <marcin@6irc.net>2014-06-21 20:34:09 +0200
commit8d8563a20d6907cd106176704a404e3d2ff10763 (patch)
tree055e566233afc02594ee1e8fc2ab1a0b19fa2c36 /templates/main.js
parent73177fcffc040d1c225782fe85f09576a39f6890 (diff)
Fix scroll to issues with post-hover.js, clean up highlightReply
Conflicts: templates/post_reply.html templates/post_thread.html
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