summaryrefslogtreecommitdiffstats
path: root/pages/chat.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-11 13:37:16 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-03-11 13:37:16 -0700
commit659de2e8017ab15c18254084608d984afd8d87a2 (patch)
tree9013bc8ba0c1f61fda3a21fdd9d8159dede6fe7f /pages/chat.php
parent3eaecf134d4b50c3155d3387a3a387e236e7afcb (diff)
downloadpathery-659de2e8017ab15c18254084608d984afd8d87a2.tar.xz
Chat: No more spoilers in the title.
Diffstat (limited to 'pages/chat.php')
-rw-r--r--pages/chat.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/pages/chat.php b/pages/chat.php
index 45a0700..5be6689 100644
--- a/pages/chat.php
+++ b/pages/chat.php
@@ -90,7 +90,12 @@ function getChatDone(data) {
chat.message = chat.message.substring(9);
isSpoiler = true;
}
-
+
+ if (!isSpoiler) {
+ document.title = chat.displayName+': '+chat.message.substring(0, 20)+' | Pathery Chat';
+ } else {
+ document.title = chat.displayName+': ~Spoiler~ | Pathery Chat';
+ }
//console.log("INSIDE BUILD START");
p = '';
@@ -140,7 +145,6 @@ function getChatDone(data) {
$("#chatContainer").scrollTop($("#chatContainer")[0].scrollHeight);
firstGetChat = false;
}
- document.title = lastDisplay+': '+lastMessage.substring(0, 10)+'... Pathery Chat';
if (chatIsMuted == 'false') {
soundManager.setVolume('charm', 20);
soundManager.setPan('charm', -60)