diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-12 20:01:10 -0500 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-12 20:01:10 -0500 |
commit | 6ce00969ead28f357ff924340da524d6f2fede65 (patch) | |
tree | b51cab9e4f1ce9715962eb481d1fe892e8a8677b /pages/chat.php | |
parent | 2b852b97cb6e6d0270c5f3ffbfb28a8279e37f90 (diff) | |
parent | d9958bde9c3feddf15eced5c786c164db21b1efe (diff) | |
download | pathery-6ce00969ead28f357ff924340da524d6f2fede65.tar.xz |
Merge branch 'master' of git.raylu.net:pathery
Conflicts:
db updates.sql
Diffstat (limited to 'pages/chat.php')
-rw-r--r-- | pages/chat.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pages/chat.php b/pages/chat.php index c04f7b6..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)
@@ -244,8 +248,14 @@ function setChatMute() { var value = chatIsMuted;
$('#chatMute').removeClass("chatMute_"+value);
- if (value == 'true') value = 'false';
- else value = 'true';
+ if (value == 'true') {
+ value = 'false';
+ soundManager.setVolume('pit', 20);
+ soundManager.setPan('pit', -60)
+ soundManager.play('pit');
+ } else {
+ value = 'true';
+ }
chatIsMuted = value;
$('#chatMute').addClass("chatMute_"+value);
savePref('chatMute', value);
|