diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-07 02:15:11 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-07 02:15:11 +0000 |
commit | cb5ecaff25b858117a57ede78f353661a520c9d4 (patch) | |
tree | 205600b0f86ad858086250402bf5ca2a44b9367e /engine/lib/admin.php | |
parent | 31ad8156b107894e238f4f53ec174aa8a4c30aa4 (diff) | |
download | elgg-cb5ecaff25b858117a57ede78f353661a520c9d4.tar.gz elgg-cb5ecaff25b858117a57ede78f353661a520c9d4.tar.bz2 |
Added drag and drop reordering of plugins. Started pulling out admin area's js into elgg.admin JS object.
git-svn-id: http://code.elgg.org/elgg/trunk@8056 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r-- | engine/lib/admin.php | 5 |
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'); |