toggle metabox classes on boxes added via ajax
This commit is contained in:
parent
2da4ea0084
commit
a86403f884
|
@ -27,10 +27,8 @@ jQuery( function ( $ ) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$( function() {
|
$( '.wc-metaboxes-wrapper' ).on( 'click', '.wc-metabox h3', function( event ) {
|
||||||
$( '.wc-metabox > h3' ).click( function() {
|
$( this ).parent( '.wc-metabox' ).toggleClass( 'closed' ).toggleClass( 'open' );
|
||||||
$( this ).parent( '.wc-metabox' ).toggleClass( 'closed' ).toggleClass( 'open' );
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Tabbed Panels
|
// Tabbed Panels
|
||||||
|
|
Loading…
Reference in New Issue