summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-02-03 01:20:22 -0500
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-02-03 01:20:22 -0500
commit56858bed05958b766b818aa037ef3617a33cf3cb (patch)
tree43c74f7858d48755b8036492bff56f0363fe3266 /static/js
parent5ef49fe8311fae378e8dfec230ddbf0be83bf5b9 (diff)
Fixed browser-related issue with message counter
Diffstat (limited to 'static/js')
-rwxr-xr-xstatic/js/pichat.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index fb1c655..48e1e50 100755
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -177,7 +177,7 @@ function refresh() {
json.messages,
function(m) { return !isDuplicateMessage(m) });
updateUI(messages, json.users);
- if (!HasFocus && typeof UnseenMsgCounter !== 'undefined') {
+ if (typeof UnseenMsgCounter !== 'undefined' && !HasFocus) {
UnseenMsgCounter += messages.length;
}
} catch(e) {