diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 07:22:24 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 07:22:24 -0700 |
commit | 5997f57323ff6608de75c3700bbcde8b8d0f3bbf (patch) | |
tree | 3d7ef628410e82e3e66d9d65dfe509fc75e6df7b /modules/user/helpers | |
parent | 7bdf382e813515ce7ab6e14f0b8e3e0b7b6bd867 (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.
Diffstat (limited to 'modules/user/helpers')
-rw-r--r-- | modules/user/helpers/user_theme.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/user/helpers/user_theme.php b/modules/user/helpers/user_theme.php index c5351f8e..69042aed 100644 --- a/modules/user/helpers/user_theme.php +++ b/modules/user/helpers/user_theme.php @@ -23,10 +23,4 @@ class user_theme_Core { $view->user = user::active(); return $view->render(); } - - static function admin_head($theme) { - if (strpos(Router::$current_uri, "admin/users") !== false) { - $theme->script("gallery.panel.js"); - } - } } |