From 8d8563a20d6907cd106176704a404e3d2ff10763 Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 12 Jun 2014 15:36:01 +0000 Subject: Fix scroll to issues with post-hover.js, clean up highlightReply Conflicts: templates/post_reply.html templates/post_thread.html --- templates/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/main.js') 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 -- cgit v1.3