aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-10-23 11:59:23 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-10-23 11:59:23 -0700
commitb0e599dc5c1c1e4d1a57b4adf345210778369650 (patch)
tree85d7a74c1ae884b9712e1c953b7f54ad58cc8c27 /views
parent1b179e3dd38c98959dd95ee42af14d1a32ab2481 (diff)
downloadelgg-b0e599dc5c1c1e4d1a57b4adf345210778369650.tar.gz
elgg-b0e599dc5c1c1e4d1a57b4adf345210778369650.tar.bz2
Fixes #3864. Removed old code from profile fields sorting. Name spaced IDs and classes.
Diffstat (limited to 'views')
-rw-r--r--views/default/admin/appearance/profile_fields/list.php9
-rw-r--r--views/default/js/admin.php4
2 files changed, 4 insertions, 9 deletions
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) {
}
}
?>
-<div id="list">
- <ul id="sortable_profile_fields">
+<ul id="elgg-profile-fields">
<?php
$save = elgg_echo('save');
@@ -53,8 +52,4 @@ HTML;
}
?>
- </ul>
-</div>
-<div id="tempList"></div>
-
-<input name="sortableListOrder" type="hidden" id="sortableListOrder" value="<?php echo $fieldlist; ?>" /> \ No newline at end of file
+</ul> \ 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', {