Update JavaScript code at install pages

This commit is contained in:
Dmitriy Simushev 2013-02-26 15:54:49 +00:00
parent 4f47218a13
commit 6c1852e094
3 changed files with 25 additions and 17 deletions

View File

@ -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,$);

View File

@ -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, $);

View File

@ -24,10 +24,19 @@ $page['fixedwrap'] = true;
function tpl_header() { global $page, $webimroot;
if($page['soundcheck']) {
?>
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/compiled/common.js"></script>
<script type="text/javascript" language="javascript"><!--
var wroot ="<?php echo $webimroot ?>";
//--></script>
<!-- External libs -->
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/json2.js"></script>
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/underscore-min.js"></script>
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/backbone-min.js"></script>
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/backbone.marionette.min.js"></script>
<script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/handlebars.js"></script>
<!-- Default application files -->
<script type="text/javascript" src="<?php echo $webimroot ?>/js/compiled/mibewapi.js"></script>
<script type="text/javascript" src="<?php echo $webimroot ?>/js/compiled/default_app.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/compiled/soundcheck.js"></script>
<?php
}