diff options
| author | 8chan <admin@8chan.co> | 2014-06-12 15:36:01 +0000 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-06-12 15:36:40 +0000 |
| commit | 1d6f46d9bbcf84368be9cd3920e034387da27514 (patch) | |
| tree | 22a9e01c97dc6f1f7848485d99a1b4ea900b2623 /templates/main.js | |
| parent | 427a9938a7fbc43fb515379764d2978d0781ee47 (diff) | |
Fix scroll to issues with post-hover.js, clean up highlightReply
Diffstat (limited to 'templates/main.js')
| -rw-r--r-- | templates/main.js | 4 |
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 |
