Changeset 2799
- Timestamp:
- 03/03/2010 09:28:01 AM (16 years ago)
- Location:
- trunk/bp-xprofile
- Files:
-
- 3 edited
-
admin/css/admin.css (modified) (4 diffs)
-
admin/js/admin.js (modified) (4 diffs)
-
bp-xprofile-admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/admin/css/admin.css
r2798 r2799 1 2 div.sortable { 3 margin-bottom: 20px; 4 } 5 1 /* Profile field group main admin page */ 6 2 table.field-group { 7 3 margin-bottom: 20px; 8 } 9 table.field-group.ui-sortable-helper { 10 filter: alpha(opacity=50); 11 opacity: 0.5; 12 } 13 table.field-group.ui-sortable-placeholder { 14 border: 2px dashed #ddd; 15 visibility: visible !important; 16 margin-bottom: 22px; 17 background-color: transparent; 18 } 19 20 table.field-group thead tr.grabber { 21 cursor: move; 22 } 23 24 table.field-group tbody { 25 cursor: move; 26 } 4 background-color: #fafafa; 5 } 6 table.field-group.ui-sortable-placeholder { 7 border: 2px dashed #ddd; 8 visibility: visible !important; 9 background-color: transparent; 10 width: 100%; 11 margin-bottom: 20px; 12 } 13 table.field-group thead tr.grabber, 14 table.field-group tbody { 15 cursor: move; 16 } 27 17 table.field-group tbody tr.nodrag { 28 18 cursor: default !important; 29 19 } 30 31 table.field-group tbody tr:hover { 32 background-color: #fffee9; 33 } 20 table.field-group tbody tr.ui-sortable-placeholder { 21 visibility: visible !important; 22 display: block !important; 23 background-color: #fafafa; 24 } 25 table.field-group td { 26 background-color: #fff; 27 } 28 table.field-group tbody tr:hover td { 29 background-color: #fffee9; 30 } 34 31 35 32 tr.header td { … … 43 40 font-size: 16px; 44 41 } 45 42 46 43 ul.forTab { 47 44 list-style: none; … … 55 52 ul.forTab li label { 56 53 display: block; 57 58 54 } 59 55 … … 78 74 79 75 select.multi-select{ 80 width:90%;81 height:10em !important;76 width:90%; 77 height:10em !important; 82 78 } 83 79 84 80 ul.multi-checkbox { 85 margin: 0 5px 0 0px;86 padding: .5em .9em;87 height: 10em;88 overflow: auto;89 list-style: none;90 border: solid 1px #ccc;91 width:90%; 81 margin: 0 5px 0 0px; 82 padding: .5em .9em; 83 height: 10em; 84 overflow: auto; 85 list-style: none; 86 border: solid 1px #ccc; 87 width: 90%; 92 88 } 93 89 94 90 ul.multi-checkbox li{ 95 padding: 0;96 margin: 0;91 padding: 0; 92 margin: 0; 97 93 } 98 94 -
trunk/bp-xprofile/admin/js/admin.js
r2798 r2799 110 110 axis: 'y', 111 111 helper: fixHelper, 112 distance: 1, 113 cancel: 'table.nodrag', 112 opacity: 0.6, 113 items: 'table', 114 cancel: 'tbody,tfoot', 115 tolerance: 'pointer', 114 116 update: function() { 115 117 jQuery.post( ajaxurl, { … … 122 124 } 123 125 }); 126 jQuery("form#profile-field-form div#field-groups").disableSelection(); 124 127 125 128 jQuery("table.field-group tbody").sortable( { … … 127 130 axis: 'y', 128 131 helper: fixHelper, 129 distance: 1, 132 opacity: 0.6, 133 items: 'tr', 130 134 cancel: 'tr.nodrag', 135 connectWith: 'table.field-group tbody', 136 tolerance: 'pointer', 131 137 update: function() { 132 138 jQuery.post( ajaxurl, { … … 139 145 } 140 146 }); 147 jQuery("table.field-group tbody").disableSelection(); 141 148 } ); -
trunk/bp-xprofile/bp-xprofile-admin.php
r2798 r2799 67 67 <thead> 68 68 <tr class="grabber"> 69 <th scope="col" width="10"> </th>69 <th scope="col" width="10"><img src="<?php echo BP_PLUGIN_URL ?>/bp-xprofile/admin/images/move.gif" alt="<?php _e( 'Drag', 'buddypress' ) ?>" /></th> 70 70 <th scope="col" colspan="<?php if ( $group->can_delete ) { ?>3<?php } else { ?>5<?php } ?>"><?php echo attribute_escape( $group->name ); ?></th> 71 71 <?php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)