summaryrefslogtreecommitdiffstats
path: root/pages/chat.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-10 23:05:53 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-03-10 23:05:53 -0700
commit3eaecf134d4b50c3155d3387a3a387e236e7afcb (patch)
treece0c6cbc76cada3bfabe815cc21298f054cfe67f /pages/chat.php
parent805a8fc305b140bc47e95a6ce4e01de0315bfe8c (diff)
downloadpathery-3eaecf134d4b50c3155d3387a3a387e236e7afcb.tar.xz
Chat mute-button click sound.
Diffstat (limited to 'pages/chat.php')
-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);