From 5ef49fe8311fae378e8dfec230ddbf0be83bf5b9 Mon Sep 17 00:00:00 2001 From: sostler Date: Mon, 1 Feb 2010 22:15:10 -0500 Subject: Added check for focus to unseen message increment --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/js') 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) { -- cgit v1.2.3-70-g09d2