summaryrefslogtreecommitdiff
path: root/static/js/pichat.js
diff options
context:
space:
mode:
authorScott Ostler <scottbot9000@gmail.com>2010-08-30 17:58:10 -0400
committerScott Ostler <scottbot9000@gmail.com>2010-08-30 17:58:10 -0400
commitb8d5625e0fae0a61a3b14941c6fcb7cb2d7ca724 (patch)
tree2054cbf4eef54d71f4a48f6c2a7f007d9d7de297 /static/js/pichat.js
parentb492c944c67f7c1245926fe7f1096c0589f642ce (diff)
parentaf47c4c5f5b99a4ab3f5a18a734f11f82530d778 (diff)
Merge branch 'master' of ssh://dump.fm/pichat/repo
Diffstat (limited to 'static/js/pichat.js')
-rw-r--r--static/js/pichat.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 4f8b47b..9287cc1 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -224,7 +224,8 @@ function buildMsgContent(content) {
// isLoading doesn't get passed the right thing by $.map in addMessages
function buildMessageDiv(msg, isLoading) {
var nick = escapeHtml(msg.nick);
-// if (nick == 'frakbuddy' && Nick != 'frakbuddy') return;
+ if (nick == 'frakbuddy' && Nick != 'frakbuddy') return;
+ if (nick == 'FAUXreal' && Nick != 'FAUXreal') return;
removeOldMessages()
var msgId = ('msg_id' in msg) ? 'id="message-' + msg.msg_id + '"' : '';
var loadingClass = isLoading ? ' loading' : '';
@@ -1224,13 +1225,11 @@ function onBlur() {
}
function titleUpdater() {
- if (HasFocus || UnseenMsgCounter == 0 || $('title').text() != OrigTitle) {
- $('title').text(OrigTitle);
- } else {
+ if (UnseenMsgCounter > 0) {
var plural = UnseenMsgCounter > 1 ? 's' : '';
$('title').text(UnseenMsgCounter + ' new dump' + plural + '! | ' + OrigTitle);
}
- setTimeout(titleUpdater, 2000);
+ setTimeout(titleUpdater, 4000);
}
function startTitleUpdater() {