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.
This commit is contained in:
Tim Almdal
2009-08-06 07:22:24 -07:00
parent 7bdf382e81
commit 5997f57323
4 changed files with 5 additions and 19 deletions

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");
}
}
}