mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Theme Customizer: Don't expand theme title if there are no details to show. props nacin, fixes #20757, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20940 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -594,11 +594,15 @@
|
||||
});
|
||||
|
||||
// Temporary accordion code.
|
||||
$('.customize-section-title').click( function() {
|
||||
$('.customize-section-title').click( function( event ) {
|
||||
var clicked = $( this ).parents( '.customize-section' );
|
||||
|
||||
if ( clicked.hasClass('cannot-expand') )
|
||||
return;
|
||||
|
||||
$( '.customize-section' ).not( clicked ).removeClass( 'open' );
|
||||
clicked.toggleClass( 'open' );
|
||||
return false;
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
// Button bindings.
|
||||
|
||||
Reference in New Issue
Block a user