Skip to:
Content

BuddyPress.org

Changeset 8409


Ignore:
Timestamp:
05/10/2014 01:49:36 AM (12 years ago)
Author:
boonebgorges
Message:

Add state CSS classes to xprofile field visibility toggles and settings divs

This gives themers greater control over the behavior of these elements, by
telling them which "state" they're in.

Fixes #5498

Props hnla

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/js/buddypress.js

    r8399 r8409  
    10991099                event.preventDefault();
    11001100
    1101                 jq( this ).parent().hide()
    1102                         .siblings( '.field-visibility-settings' ).show();
     1101                jq( this ).parent().hide().addClass( 'field-visibility-settings-hide' )
     1102                        .siblings( '.field-visibility-settings' ).show().addClass( 'field-visibility-settings-open' );
    11031103        } );
    11041104
     
    11091109                        vis_setting_text = settings_div.find( 'input:checked' ).parent().text();
    11101110
    1111                 settings_div.hide()
     1111                settings_div.hide().removeClass( 'field-visibility-settings-open' )
    11121112                        .siblings( '.field-visibility-settings-toggle' )
    11131113                                .children( '.current-visibility-level' ).text( vis_setting_text ).end()
    1114                         .show();
     1114                        .show().removeClass( 'field-visibility-settings-hide' );
    11151115        } );
    11161116
Note: See TracChangeset for help on using the changeset viewer.