diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2010-09-05 06:04:12 -0400 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2010-09-05 06:04:12 -0400 |
| commit | 7e38d6bb674c3c06ad247b6d474b5cee02ea6887 (patch) | |
| tree | e3501474fe1301ddfb00b93c16b7b0d918a82af1 /static/js/pichat.js | |
| parent | 62d6401ca88bc72ffe157d3af3bfec7c8cbb3100 (diff) | |
Update msgs to use Away package
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
