aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views')
-rw-r--r--mod/profile/views/default/profile/css.php20
-rw-r--r--mod/profile/views/default/profile/editdefaultprofileitems.php7
2 files changed, 23 insertions, 4 deletions
diff --git a/mod/profile/views/default/profile/css.php b/mod/profile/views/default/profile/css.php
index 61e85e1c7..e36aa1184 100644
--- a/mod/profile/views/default/profile/css.php
+++ b/mod/profile/views/default/profile/css.php
@@ -321,6 +321,26 @@ p.visit_twitter a {
.default_profile_reset .action_button {
float:right;
}
+/* field re-order */
+#sortable_profile_fields {
+ padding:0;
+ border-top:1px solid #cccccc;
+}
+#sortable_profile_fields li {
+ padding:5px 0 5px 0;
+ border-bottom:1px solid #cccccc;
+}
+#sortable_profile_fields li img.handle {
+ margin-right: 7px;
+ cursor: move;
+}
+#sortable_profile_fields .ui-sortable-helper {
+ background: #eeeeee;
+ color:#333333;
+ padding: 5px 0 5px 0;
+ margin: 0;
+ width:100%;
+}
/* ***************************************
diff --git a/mod/profile/views/default/profile/editdefaultprofileitems.php b/mod/profile/views/default/profile/editdefaultprofileitems.php
index 4cd5d68e9..4b0564d2d 100644
--- a/mod/profile/views/default/profile/editdefaultprofileitems.php
+++ b/mod/profile/views/default/profile/editdefaultprofileitems.php
@@ -2,7 +2,7 @@
<script language="javascript" type="text/javascript">
var reorderURL = '<?php echo elgg_add_action_tokens_to_url($vars['url'] . 'action/profile/editdefault/reorder', FALSE); ?>';
function sortCallback(event, ui) {
- var orderArr = $('#sortableList').sortable('toArray');
+ var orderArr = $('#sortable_profile_fields').sortable('toArray');
var orderStr = orderArr.join(',');
console.log(orderArr);
console.log(orderStr);
@@ -10,7 +10,7 @@ function sortCallback(event, ui) {
}
$(document).ready(function() {
- $('#sortableList').sortable({
+ $('#sortable_profile_fields').sortable({
items: 'li',
handle: '.handle',
stop: sortCallback
@@ -18,10 +18,9 @@ $(document).ready(function() {
});
</script>
-<script language="javascript" type="text/javascript" src="<?php echo $vars['url']; ?>mod/multiadmin/vendors/js/jquery.jeditable.js" ></script>
<div id="list">
- <ul id="sortableList">
+ <ul id="sortable_profile_fields">
<?php
$save = elgg_echo('save');