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:
Claudio Sanches 2015-08-14 14:10:49 -03:00
commit 9512aa66ef
1 changed files with 2 additions and 4 deletions

View File

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