Skip to:
Content

BuddyPress.org

Changeset 2799


Ignore:
Timestamp:
03/03/2010 09:28:01 AM (16 years ago)
Author:
johnjamesjacoby
Message:

IE7 fixes for xprofile field group reorder. Also fix issue with nested sortables.

Location:
trunk/bp-xprofile
Files:
3 edited

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 */
    62table.field-group {
    73        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        }
    2717        table.field-group tbody tr.nodrag {
    2818                cursor: default !important;
    2919        }
    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        }
    3431       
    3532tr.header td {
     
    4340        font-size: 16px;
    4441}
    45        
     42
    4643        ul.forTab {
    4744                list-style: none;
     
    5552                        ul.forTab li label {
    5653                                display: block;
    57                                
    5854                        }
    5955       
     
    7874
    7975        select.multi-select{
    80             width:90%;
    81         height:10em !important;
     76                width:90%;
     77                height:10em !important;
    8278        }
    8379
    8480ul.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%;
    9288}
    9389
    9490ul.multi-checkbox li{
    95     padding: 0;
    96     margin: 0;
     91        padding: 0;
     92        margin: 0;
    9793}
    9894
  • trunk/bp-xprofile/admin/js/admin.js

    r2798 r2799  
    110110                axis: 'y',
    111111                helper: fixHelper,
    112                 distance: 1,
    113                 cancel: 'table.nodrag',
     112                opacity: 0.6,
     113                items: 'table',
     114                cancel: 'tbody,tfoot',
     115                tolerance: 'pointer',
    114116                update: function() {
    115117                        jQuery.post( ajaxurl, {
     
    122124                }
    123125        });
     126        jQuery("form#profile-field-form div#field-groups").disableSelection();
    124127
    125128        jQuery("table.field-group tbody").sortable( {
     
    127130                axis: 'y',
    128131                helper: fixHelper,
    129                 distance: 1,
     132                opacity: 0.6,
     133                items: 'tr',
    130134                cancel: 'tr.nodrag',
     135                connectWith: 'table.field-group tbody',
     136                tolerance: 'pointer',
    131137                update: function() {
    132138                        jQuery.post( ajaxurl, {
     
    139145                }
    140146        });
     147        jQuery("table.field-group tbody").disableSelection();
    141148} );
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r2798 r2799  
    6767                                                        <thead>
    6868                                                                <tr class="grabber">
    69                                                                         <th scope="col" width="10">&nbsp;</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>
    7070                                                                        <th scope="col" colspan="<?php if ( $group->can_delete ) { ?>3<?php } else { ?>5<?php } ?>"><?php echo attribute_escape( $group->name ); ?></th>
    7171<?php
Note: See TracChangeset for help on using the changeset viewer.