diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-15 04:53:16 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-15 04:53:16 +0000 |
| commit | e665a21038ed197eef4ddda9f9525ca173ee0f37 (patch) | |
| tree | 2ee7e20dc605f6cb82423db5816122ae17d0d61f /themes/admin_default | |
| parent | 1cb02685894f3aabcde64429d9f69b0de329ec5b (diff) | |
Set up a global gallery3 javascript variable where we can put things that need to be passed into the javascript
Diffstat (limited to 'themes/admin_default')
| -rw-r--r-- | themes/admin_default/views/admin.html.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/admin_default/views/admin.html.php b/themes/admin_default/views/admin.html.php index 8b3cede3..81b69b30 100644 --- a/themes/admin_default/views/admin.html.php +++ b/themes/admin_default/views/admin.html.php @@ -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' |
