summaryrefslogtreecommitdiffstats
path: root/js/mapspecs.js
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 /js/mapspecs.js
parent805a8fc305b140bc47e95a6ce4e01de0315bfe8c (diff)
downloadpathery-3eaecf134d4b50c3155d3387a3a387e236e7afcb.tar.xz
Chat mute-button click sound.
Diffstat (limited to 'js/mapspecs.js')
-rw-r--r--js/mapspecs.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 0f9be4a..688c9dc 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -985,8 +985,14 @@ function setMute(value)
{
var value = getCookie('pref_mute');
$('.mapMute').removeClass("mapMute_"+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';
+ }
savePref('mute', value);
$('.mapMute').addClass("mapMute_"+value);