child selector

This commit is contained in:
Manos Psychogyiopoulos 2015-08-14 09:46:22 +03:00
parent a86403f884
commit 9652d881f9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ jQuery( function ( $ ) {
}
});
$( '.wc-metaboxes-wrapper' ).on( 'click', '.wc-metabox h3', function( event ) {
$( '.wc-metaboxes-wrapper' ).on( 'click', '.wc-metabox > h3', function( event ) {
$( this ).parent( '.wc-metabox' ).toggleClass( 'closed' ).toggleClass( 'open' );
});