Set up a global gallery3 javascript variable where we can put things that need to be passed into the javascript

This commit is contained in:
Tim Almdal
2008-12-15 04:53:16 +00:00
parent 1cb0268589
commit e665a21038
2 changed files with 9 additions and 0 deletions

View File

@@ -13,6 +13,10 @@
<link rel="stylesheet" href="<?= $theme->url("jquery/superfish-navbar.css") ?>" type="text/css" media="screen,projection">
<script src="<?= $theme->url("jquery/superfish.js") ?>"></script>
<script type="text/javascript">
var gallery3 = {
base_url: <?= url::base() ?>
};
$(document).ready(function(){
$("ul.sf-menu").superfish({
pathClass: 'current'