diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 22:22:24 +0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 22:28:05 +0800 |
commit | b826182b7a7b2d630b478d3e2bcf0628989a92d9 (patch) | |
tree | e4fd77f98413b9e5d903ea95568d7f4af1d37b9a /modules/gallery/helpers/gallery_theme.php | |
parent | f0b3d37d18c19a170dc737dc01e002d26535a9b3 (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.php | 1 |
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"); |