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>
This commit is contained in:
Tim Almdal
2009-08-06 22:28:05 +08:00
parent f0b3d37d18
commit b826182b7a
4 changed files with 5 additions and 19 deletions
-6
View File
@@ -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");
}
}
}