aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/admin.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index 0e6eab0cf..98247c962 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -97,6 +97,8 @@ function admin_init() {
elgg_register_action('profile/fields/delete', '', 'admin');
elgg_register_action('profile/fields/reorder', '', 'admin');
+ elgg_view_register_simplecache('js/admin');
+
// statistics
elgg_add_admin_menu_item('statistics', elgg_echo('admin:statistics'));
elgg_add_admin_menu_item('overview', elgg_echo('admin:statistics:overview'), 'statistics');
@@ -175,6 +177,9 @@ function admin_settings_page_handler($page) {
elgg_unregister_css('screen');
+ $url = elgg_view_get_simplecache_url('js', 'admin');
+ elgg_register_js($url, 'admin');
+
// default to dashboard
if (!isset($page[0]) || empty($page[0])) {
$page = array('dashboard');