summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_theme.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-06 22:22:24 +0800
committerTim Almdal <tnalmdal@shaw.ca>2009-08-06 22:28:05 +0800
commitb826182b7a7b2d630b478d3e2bcf0628989a92d9 (patch)
treee4fd77f98413b9e5d903ea95568d7f4af1d37b9a /modules/gallery/helpers/gallery_theme.php
parentf0b3d37d18c19a170dc737dc01e002d26535a9b3 (diff)
Cleanup the javascript for enabling dialog or panel links.
1) We don't need to loop over the elements to bind the event handler. 2) Just include gallery.panel.js for all the admin pages. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
-rw-r--r--modules/gallery/helpers/gallery_theme.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index d3751b80..903827cc 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -78,6 +78,7 @@ class gallery_theme_Core {
}
static function admin_head($theme) {
+ $theme->script("gallery.panel.js");
$session = Session::instance();
if ($session->get("debug")) {
$theme->css("debug.css");