mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Customizer panels: use a single back button for all panels.
This also ensures the back button is visible on iOS devices. props celloexpressions. fixes #29135. git-svn-id: https://develop.svn.wordpress.org/trunk@29610 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -47,14 +47,14 @@
|
||||
});
|
||||
|
||||
// Go back to the top-level Customizer accordion.
|
||||
$( '.accordion-container' ).on( 'click keydown', '.control-panel-back', function( e ) {
|
||||
$( '#customize-header-actions' ).on( 'click keydown', '.control-panel-back', function( e ) {
|
||||
if ( e.type === 'keydown' && 13 !== e.which ) { // "return" key
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault(); // Keep this AFTER the key filter above
|
||||
|
||||
panelSwitch( $( this ) );
|
||||
panelSwitch( $( '.current-panel' ) );
|
||||
});
|
||||
});
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
container = section.closest( '.accordion-container' ),
|
||||
siblings = container.find( '.open' ),
|
||||
topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ).add( '#customize-info > .accordion-section-title' ),
|
||||
backBtn = section.find( '.control-panel-back' ),
|
||||
backBtn = overlay.find( '.control-panel-back' ),
|
||||
panelTitle = section.find( '.accordion-section-title' ).first(),
|
||||
content = section.find( '.control-panel-content' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user