summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/chat.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/pages/chat.php b/pages/chat.php
index c04f7b6..45a0700 100644
--- a/pages/chat.php
+++ b/pages/chat.php
@@ -244,8 +244,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);