summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-02-01 22:15:10 -0500
committersostler <sbostler@gmail.com>2010-02-01 22:15:10 -0500
commit5ef49fe8311fae378e8dfec230ddbf0be83bf5b9 (patch)
tree9837a422734e00c9b8628eeffb02f923d0663fbf /static/js
parent004b02c4c310b9c1fb30b7f49b4a76a4cab5f151 (diff)
Added check for focus to unseen message increment
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 2804919..fb1c655 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 (typeof UnseenMsgCounter !== 'undefined') {
+ if (!HasFocus && typeof UnseenMsgCounter !== 'undefined') {
UnseenMsgCounter += messages.length;
}
} catch(e) {