Added new utils.js files and folder under js for javascript code need it for the theme.

This commit is contained in:
mb863 2010-10-06 20:32:00 +00:00
parent 5ab172e929
commit 1d84201acb
2 changed files with 8 additions and 4 deletions

4
themes/wilma/js/utils.js Normal file
View file

@ -0,0 +1,4 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
//Fix Transparent PNGs in IE6.
//webapp/web/js/jquery_plugins/supersleight.js creates the supersleight() method
$('body').supersleight();

View file

@ -102,12 +102,12 @@ ${headScripts.tags}
<script type="text/javascript" src="http://use.typekit.com/chp2uea.js"></script> <script type="text/javascript" src="http://use.typekit.com/chp2uea.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
${scripts.add("/js/jquery.js")} ${scripts.add("/js/jquery.js")}
${scripts.tags}
<!--[if lt IE 7]> <!--[if lt IE 7]>
${scripts.add("/js/supersleight.js")} ${scripts.add("/js/jquery_plugins/supersleight.js")}
${scripts.add("/js/supersleightUtils.js")} ${scripts.addFromTheme("/js/utils.js")}
<link rel="stylesheet" href="css/ie6.css" /> <link rel="stylesheet" href="css/ie6.css" />
<![endif]--> <![endif]-->
<!--[if IE 7]> <!--[if IE 7]>
@ -116,7 +116,7 @@ ${scripts.add("/js/supersleightUtils.js")}
<!--[if (gte IE 6)&(lte IE 8)]> <!--[if (gte IE 6)&(lte IE 8)]>
${scripts.add("/js/selectivizr.js")} ${scripts.add("/js/selectivizr.js")}
<![endif]--> <![endif]-->
${scripts.tags}
<#include "googleAnalytics.ftl">
</body> </body>
</html> </html>