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/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/default')
-rw-r--r-- | themes/default/views/page.html.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 01cb2c6e..29792d60 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -24,6 +24,11 @@ <?= $theme->head() ?> <script src="<?= $theme->url("lib/jquery-ui.packed.js") ?>" type="text/javascript"></script> <script src="<?= $theme->url("js/ui.init.js") ?>" type="text/javascript"></script> + <script type="text/javascript"> + var gallery3 = { + base_url: <?= url::base() ?> + }; + </script> </head> <body> |