Customize: Reveal controls pane when clicking on edit shortcuts in mobile preview.
Re-use `paneVisible` state to also manage whether the mobile `preview-only` class is applied to the overlay. Props seancjones. See #36678, #36678, #27403. Fixes #38080. Built from https://develop.svn.wordpress.org/trunk@39010 git-svn-id: http://core.svn.wordpress.org/trunk@38952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2dd904df5e
commit
5015bd55a2
|
@ -5272,6 +5272,7 @@
|
|||
});
|
||||
|
||||
api.state( 'paneVisible' ).bind( function( paneVisible ) {
|
||||
overlay.toggleClass( 'preview-only', ! paneVisible );
|
||||
overlay.toggleClass( 'expanded', paneVisible );
|
||||
overlay.toggleClass( 'collapsed', ! paneVisible );
|
||||
|
||||
|
@ -5331,7 +5332,7 @@
|
|||
});
|
||||
|
||||
$( '.customize-controls-preview-toggle' ).on( 'click', function() {
|
||||
overlay.toggleClass( 'preview-only' );
|
||||
api.state( 'paneVisible' ).set( ! api.state( 'paneVisible' ).get() );
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta1-39009';
|
||||
$wp_version = '4.7-beta1-39010';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue