From d52a995eca058e8c4ffb7039f0a7effc38bc5209 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 18 Jul 2012 01:36:52 -0400 Subject: fix --- static/js/src/chat.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'static/js/src/chat.js') 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 -- cgit v1.2.3-70-g09d2