From b0e599dc5c1c1e4d1a57b4adf345210778369650 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Sun, 23 Oct 2011 11:59:23 -0700 Subject: Fixes #3864. Removed old code from profile fields sorting. Name spaced IDs and classes. --- views/default/admin/appearance/profile_fields/list.php | 9 ++------- views/default/js/admin.php | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'views') diff --git a/views/default/admin/appearance/profile_fields/list.php b/views/default/admin/appearance/profile_fields/list.php index f4ff1e986..3e287ceac 100644 --- a/views/default/admin/appearance/profile_fields/list.php +++ b/views/default/admin/appearance/profile_fields/list.php @@ -26,8 +26,7 @@ if ($fieldlist) { } } ?> -
-
-
- - \ No newline at end of file + \ No newline at end of file diff --git a/views/default/js/admin.php b/views/default/js/admin.php index 253a73887..d4dd06822 100644 --- a/views/default/js/admin.php +++ b/views/default/js/admin.php @@ -42,7 +42,7 @@ elgg.admin.init = function () { }); // draggable profile field reordering. - $('#sortable_profile_fields').sortable({ + $('#elgg-profile-fields').sortable({ items: 'li', handle: 'span.elgg-state-draggable', stop: elgg.admin.moveProfileField @@ -143,7 +143,7 @@ elgg.admin.editProfileField = function(value, settings) { * @return void */ elgg.admin.moveProfileField = function(e, ui) { - var orderArr = $('#sortable_profile_fields').sortable('toArray'); + var orderArr = $('#elgg-profile-fields').sortable('toArray'); var orderStr = orderArr.join(','); elgg.action('profile/fields/reorder', { -- cgit v1.2.3