summaryrefslogtreecommitdiff
path: root/static/pichat.js
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-01-13 01:48:06 -0500
committersostler <sbostler@gmail.com>2010-01-13 01:48:06 -0500
commit15ea1479fb1bd1e7d79dd53b4597fe8a0aae30db (patch)
tree6b25cf4f4d8392962514e9c9de8b028aa715def7 /static/pichat.js
parenta11aec2cbfadf39abc8a206f2c549283a2c24f35 (diff)
Added away
Diffstat (limited to 'static/pichat.js')
-rwxr-xr-xstatic/pichat.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/static/pichat.js b/static/pichat.js
index 8f61c9b..d51d18d 100755
--- a/static/pichat.js
+++ b/static/pichat.js
@@ -134,7 +134,10 @@ function refresh() {
var messages = $.grep(
json.messages,
function(m) { return !isDuplicateMessage(m) });
- updateUI(messages, json.users);
+ updateUI(messages, json.users);
+ if (typeof UnseenMsgCounter !== 'undefined') {
+ UnseenMsgCounter += messages.length;
+ }
} catch(e) {
if (IsAdmin) {
alert("Exception in refresh");