Changeset 37230
- Timestamp:
- 04/17/2016 03:40:50 PM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/customize-controls.css
r37060 r37230 1551 1551 line-height: 45px; 1552 1552 font-size: 14px; 1553 padding: 0 12px 0 12px;1553 padding: 0 12px; 1554 1554 margin: 0; 1555 1555 height: 45px; 1556 1556 background: #eee; 1557 border: 0; 1557 1558 border-right: 1px solid #ddd; 1558 1559 color: #444; -
trunk/src/wp-admin/customize.php
r37197 r37230 119 119 ?> 120 120 <span class="spinner"></span> 121 < a class="customize-controls-preview-toggle" href="#">121 <button type="button" class="customize-controls-preview-toggle"> 122 122 <span class="controls"><?php _e( 'Customize' ); ?></span> 123 123 <span class="preview"><?php _e( 'Preview' ); ?></span> 124 </ a>124 </button> 125 125 <a class="customize-controls-close" href="<?php echo esc_url( $wp_customize->get_return_url() ); ?>"> 126 <span class="screen-reader-text"><?php _e( 'C ancel' ); ?></span>126 <span class="screen-reader-text"><?php _e( 'Close the Customizer and go back to the previous page' ); ?></span> 127 127 </a> 128 128 </div> … … 135 135 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); 136 136 ?></span> 137 <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>137 <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> 138 138 </div> 139 139 <div class="customize-panel-description"><?php -
trunk/src/wp-admin/js/customize-controls.js
r37167 r37230 3273 3273 3274 3274 // Expand/Collapse the main customizer customize info. 3275 $( '.customize-info' ).find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { 3276 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 3277 return; 3278 } 3279 event.preventDefault(); // Keep this AFTER the key filter above 3280 3275 $( '.customize-info' ).find( '> .accordion-section-title .customize-help-toggle' ).on( 'click', function() { 3281 3276 var section = $( this ).closest( '.accordion-section' ), 3282 3277 content = section.find( '.customize-panel-description:first' ); … … 3634 3629 }); 3635 3630 3636 $( '.customize-controls-preview-toggle' ).on( 'click keydown', function( event ) { 3637 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 3638 return; 3639 } 3640 3631 $( '.customize-controls-preview-toggle' ).on( 'click', function() { 3641 3632 overlay.toggleClass( 'preview-only' ); 3642 event.preventDefault();3643 3633 }); 3644 3634
Note: See TracChangeset
for help on using the changeset viewer.