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,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