From 3eaecf134d4b50c3155d3387a3a387e236e7afcb Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sun, 10 Mar 2013 23:05:53 -0700 Subject: Chat mute-button click sound. --- js/mapspecs.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'js') 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); -- cgit v1.2.3