Changeset 11619
- Timestamp:
- 06/23/2017 09:37:14 PM (7 years ago)
- Location:
- trunk/src/bp-templates/bp-legacy
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress/members/register.php
r11618 r11619 184 184 185 185 if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> 186 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 186 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"><span id="<?php bp_the_profile_field_input_name(); ?>-2"> 187 187 <?php 188 188 printf( … … 191 191 ); 192 192 ?> 193 <button type="button" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button> 193 </span> 194 <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button> 194 195 </p> 195 196 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php
r11618 r11619 54 54 55 55 <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> 56 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 56 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"><span id="<?php bp_the_profile_field_input_name(); ?>-2"> 57 57 <?php 58 58 printf( … … 61 61 ); 62 62 ?> 63 <button type="button" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></button> 63 </span> 64 <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button> 64 65 </p> 65 66 -
trunk/src/bp-templates/bp-legacy/js/buddypress.js
r11613 r11619 1188 1188 event.preventDefault(); 1189 1189 1190 jq( this ). parent().hide().addClass( 'field-visibility-settings-hide' )1190 jq( this ).attr( 'aria-expanded', 'true' ).parent().hide().addClass( 'field-visibility-settings-hide' ) 1191 1191 .siblings( '.field-visibility-settings' ).show().addClass( 'field-visibility-settings-open' ); 1192 1192 } ); … … 1194 1194 jq( '.field-visibility-settings-close' ).on( 'click', function( event ) { 1195 1195 event.preventDefault(); 1196 1197 jq( '.visibility-toggle-link' ).attr( 'aria-expanded', 'false' ); 1196 1198 1197 1199 var settings_div = jq( this ).parent(),
Note: See TracChangeset
for help on using the changeset viewer.