Ticket #27406: 27406.alwaysclose.diff
File 27406.alwaysclose.diff, 959 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/js/accordion.js
72 72 var position, 73 73 section = panel.closest( '.accordion-section' ), 74 74 container = section.closest( '.wp-full-overlay' ), 75 siblings = container.find( '.accordion-section.open' ),75 siblings = section.closest( '.accordion-container' ).find( '.open' ), 76 76 content = section.find( '.control-panel-content' ); 77 77 78 78 if ( section.hasClass( 'current-panel' ) ) { … … 82 82 content.css( 'margin-top', 'inherit' ); // Reset 83 83 } ); 84 84 } else { 85 // Close all open sections in any accordion level. 85 86 siblings.removeClass( 'open' ); 87 siblings.find( sectionContent ).show().slideUp( 150 ); 86 88 content.show( 0, function() { 87 89 position = content.offset().top; 88 90 content.css( 'margin-top', ( 45 - position ) );