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({ (function(Mibew, $) {
'a#check-nv' : function(el) { $(document).ready(function() {
el.onclick = function() { $('#check-nv').click(function(){
playSound(wroot + '/sounds/new_user.wav'); Mibew.Utils.playSound('../sounds/new_user.wav');
}; });
},
'a#check-nm' : function(el) { $('#check-nm').click(function() {
el.onclick = function() { Mibew.Utils.playSound('../sounds/new_message.wav');
playSound(wroot + '/sounds/new_message.wav') });
}; });
} })(Mibew, $);
});

View File

@ -24,10 +24,19 @@ $page['fixedwrap'] = true;
function tpl_header() { global $page, $webimroot; function tpl_header() { global $page, $webimroot;
if($page['soundcheck']) { if($page['soundcheck']) {
?> ?>
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/compiled/common.js"></script>
<script type="text/javascript" language="javascript"><!-- <!-- External libs -->
var wroot ="<?php echo $webimroot ?>"; <script type="text/javascript" src="<?php echo $webimroot ?>/js/libs/jquery.min.js"></script>
//--></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> <script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/compiled/soundcheck.js"></script>
<?php <?php
} }