summaryrefslogtreecommitdiff
path: root/static/js/src/chat.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2012-07-18 01:36:52 -0400
committerJules Laplace <jules@okfoc.us>2012-07-18 01:36:52 -0400
commitd52a995eca058e8c4ffb7039f0a7effc38bc5209 (patch)
treefe90d31b0c32da9b288ce0d1bd51a7eee77a9012 /static/js/src/chat.js
parentf258d3422aa407713ff867afb9b396536e9dbdff (diff)
fix
Diffstat (limited to 'static/js/src/chat.js')
-rw-r--r--static/js/src/chat.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/static/js/src/chat.js b/static/js/src/chat.js
index 07796b2..09954de 100644
--- a/static/js/src/chat.js
+++ b/static/js/src/chat.js
@@ -44,7 +44,7 @@ function initChat() {
}
-var imgZoomThreshhold = [125, 125];
+window.imgZoomThreshhold = [125, 125];
function initChatMsgs() {
$('.msgDiv .content').live('mouseenter', function(e) {
@@ -152,7 +152,7 @@ function getMessageInfo(e){
}
// Message Handling
-var ImageMsgCount = 0
+window.ImageMsgCount = 0
function removeOldMessages(){
// don't count posts that are all text
if (LastMsgContainsImage) ImageMsgCount += 1;
@@ -166,8 +166,8 @@ function removeOldMessages(){
}
}
-var TextEnabled = Preferences.getProperty("chat.textEnabled", "true") == "none";
-var ImgsEnabled = Preferences.getProperty("chat.imgsEnabled", "true") == "true";
+window.TextEnabled = Preferences.getProperty("chat.textEnabled", "true") == "none";
+window.ImgsEnabled = Preferences.getProperty("chat.imgsEnabled", "true") == "true";
function muteSelector() {
var muted = [];
@@ -227,7 +227,7 @@ function scrollIfPossible(){
scrollToEnd()
}
-var lastScriptedScrolledPosition = 0
+window.lastScriptedScrolledPosition = 0
function scrollToEnd(){
messageList.scrollTop = messageList.scrollHeight
lastScriptedScrolledPosition = messageList.scrollTop