summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-09-05 06:04:13 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-09-05 06:04:13 -0400
commitf2fd430e9ab2f99a1493f1e1ff6b6c600c3ded91 (patch)
treedbd76513f77dee32c93ab11d7af02322c8c3fdf6 /static/js
parent626de9aba2c1513b67482602bf2d639f2feeb6b9 (diff)
parent7e38d6bb674c3c06ad247b6d474b5cee02ea6887 (diff)
Merge branch 'master' of /pichat/repo
Diffstat (limited to 'static/js')
-rw-r--r--static/js/pichat.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 72e82dd..a30c248 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -484,8 +484,8 @@ function refresh() {
json.messages,
function(m) { return !isDuplicateMessage(m) });
updateUI(messages, json.users, json.favs);
- if (typeof UnseenMsgCounter !== 'undefined' && !HasFocus) {
- UnseenMsgCounter += messages.length;
+ if (!Away.HasFocus)
+ Away.UnseenMsgCounter += messages.length;
}
} catch(e) {
if (IsAdmin && window.console) {