diff options
Diffstat (limited to 'static/js/src/chat.js')
| -rw-r--r-- | static/js/src/chat.js | 10 |
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 |
