From 38f5294709ec6cf052b053f21f851d29c5433279 Mon Sep 17 00:00:00 2001 From: marktaiwan Date: Thu, 29 Jan 2015 18:35:24 +0800 Subject: [PATCH] main.js: ensure citeReply only runs on thread page --- templates/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/main.js b/templates/main.js index e90847035..84f38fed0 100644 --- a/templates/main.js +++ b/templates/main.js @@ -336,8 +336,8 @@ function dopost(form) { function citeReply(id, with_link) { var textarea = document.getElementById('body'); - if (!textarea) return false; - + if (!textarea || active_page !== 'thread') return false; + if (document.selection) { // IE textarea.focus();