Changeset 33837
- Timestamp:
- 08/31/2015 11:07:57 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r33754 r33837 656 656 }); 657 657 } else { 658 api.panel.each( function( panel ) { 659 panel.collapse(); 660 }); 658 661 expand(); 659 662 } … … 1265 1268 // Collapse any sibling sections/panels 1266 1269 api.section.each( function ( section ) { 1267 if ( !section.panel() ) {1270 if ( panel.id !== section.panel() ) { 1268 1271 section.collapse( { duration: 0 } ); 1269 1272 } -
trunk/src/wp-includes/default-widgets.php
r33824 r33837 1571 1571 <?php 1572 1572 if ( isset( $GLOBALS['wp_customize'] ) && $GLOBALS['wp_customize'] instanceof WP_Customize_Manager ) { 1573 // @todo When expanding a panel, the JS should be smart enough to collapse any existing panels and sections. 1574 $url = 'javascript: wp.customize.section.each(function( section ){ section.collapse(); }); wp.customize.panel( "nav_menus" ).focus();'; 1573 $url = 'javascript: wp.customize.panel( "nav_menus" ).focus();'; 1575 1574 } else { 1576 1575 $url = admin_url( 'nav-menus.php' );
Note: See TracChangeset
for help on using the changeset viewer.