aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-07 02:15:11 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-07 02:15:11 +0000
commitcb5ecaff25b858117a57ede78f353661a520c9d4 (patch)
tree205600b0f86ad858086250402bf5ca2a44b9367e /engine/lib
parent31ad8156b107894e238f4f53ec174aa8a4c30aa4 (diff)
downloadelgg-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')
-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');