Merge pull request #8822 from franticpsyx/wc-metaboxes-class-toggle-ajax
WC Metabox classes don't get toggled when box added via js
This commit is contained in:
commit
9512aa66ef
|
@ -27,11 +27,9 @@ jQuery( function ( $ ) {
|
|||
}
|
||||
});
|
||||
|
||||
$( function() {
|
||||
$( '.wc-metabox > h3' ).click( function() {
|
||||
$( '.wc-metaboxes-wrapper' ).on( 'click', '.wc-metabox > h3', function( event ) {
|
||||
$( this ).parent( '.wc-metabox' ).toggleClass( 'closed' ).toggleClass( 'open' );
|
||||
});
|
||||
});
|
||||
|
||||
// Tabbed Panels
|
||||
$( document.body ).on( 'wc-init-tabbed-panels', function() {
|
||||
|
|
Loading…
Reference in New Issue