From 7e38d6bb674c3c06ad247b6d474b5cee02ea6887 Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Sun, 5 Sep 2010 06:04:12 -0400 Subject: Update msgs to use Away package --- static/js/pichat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index dfb6148..b465c47 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) { -- cgit v1.2.3-70-g09d2