diff --git a/src/messenger/webim/js/compiled/soundcheck.js b/src/messenger/webim/js/compiled/soundcheck.js index 8a487619..6628a539 100644 --- a/src/messenger/webim/js/compiled/soundcheck.js +++ b/src/messenger/webim/js/compiled/soundcheck.js @@ -1 +1 @@ -Behaviour.register({"a#check-nv":function(a){a.onclick=function(){playSound(wroot+"/sounds/new_user.wav")}},"a#check-nm":function(a){a.onclick=function(){playSound(wroot+"/sounds/new_message.wav")}}}); +(function(b,a){a(document).ready(function(){a("#check-nv").click(function(){b.Utils.playSound("../sounds/new_user.wav")});a("#check-nm").click(function(){b.Utils.playSound("../sounds/new_message.wav")})})})(Mibew,$); diff --git a/src/messenger/webim/js/source/soundcheck.js b/src/messenger/webim/js/source/soundcheck.js index 34c41582..8d3c8b37 100644 --- a/src/messenger/webim/js/source/soundcheck.js +++ b/src/messenger/webim/js/source/soundcheck.js @@ -1,12 +1,11 @@ -Behaviour.register({ - 'a#check-nv' : function(el) { - el.onclick = function() { - playSound(wroot + '/sounds/new_user.wav'); - }; - }, - 'a#check-nm' : function(el) { - el.onclick = function() { - playSound(wroot + '/sounds/new_message.wav') - }; - } -}); +(function(Mibew, $) { + $(document).ready(function() { + $('#check-nv').click(function(){ + Mibew.Utils.playSound('../sounds/new_user.wav'); + }); + + $('#check-nm').click(function() { + Mibew.Utils.playSound('../sounds/new_message.wav'); + }); + }); +})(Mibew, $); diff --git a/src/messenger/webim/view/install_index.php b/src/messenger/webim/view/install_index.php index 65f7fcec..eeb6c8a0 100644 --- a/src/messenger/webim/view/install_index.php +++ b/src/messenger/webim/view/install_index.php @@ -24,10 +24,19 @@ $page['fixedwrap'] = true; function tpl_header() { global $page, $webimroot; if($page['soundcheck']) { ?> - - + + + + + + + + + + + + +