From 6726ea66320e3075451027d5362d35d77bebaf5d Mon Sep 17 00:00:00 2001
From: John McLear
Date: Wed, 11 Jul 2012 17:42:59 +0100
Subject: [PATCH] option to stop autoscroll
---
src/static/js/chat.js | 7 +++++--
src/templates/pad.html | 4 ++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/static/js/chat.js b/src/static/js/chat.js
index 47b0ae3c..b2a7d273 100644
--- a/src/static/js/chat.js
+++ b/src/static/js/chat.js
@@ -62,8 +62,11 @@ var chat = (function()
},
scrollDown: function()
{
- if($('#chatbox').css("display") != "none")
- $('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, "slow");
+ if($('#options-scrollchat').is(':checked')){
+ if($('#chatbox').css("display") != "none"){
+ $('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, "slow");
+ }
+ }
},
send: function()
{
diff --git a/src/templates/pad.html b/src/templates/pad.html
index 02af9b10..a2513347 100644
--- a/src/templates/pad.html
+++ b/src/templates/pad.html
@@ -168,6 +168,10 @@
+
+
+
+
Font type: