[2.4] Fixed product type select in wp 4.4

This commit is contained in:
Claudio Sanches 2015-11-06 13:51:17 -02:00
parent 7d251cb449
commit d66427bd8a
2 changed files with 5 additions and 5 deletions

View File

@ -477,7 +477,7 @@ ul.wc_coupon_list_block {
} }
#woocommerce-order-data { #woocommerce-order-data {
h3.hndle, .hndle,
.handlediv { .handlediv {
display: none; display: none;
} }
@ -2445,7 +2445,7 @@ img.help_tip {
} }
#woocommerce-product-data { #woocommerce-product-data {
h3.hndle { .hndle {
padding: 10px; padding: 10px;
span { span {

View File

@ -26,13 +26,13 @@ jQuery( function( $ ) {
}); });
// Type box // Type box
$( '.type_box' ).appendTo( '#woocommerce-product-data h3.hndle span' ); $( '.type_box' ).appendTo( '#woocommerce-product-data .hndle span' );
$( function() { $( function() {
// Prevent inputs in meta box headings opening/closing contents // Prevent inputs in meta box headings opening/closing contents
$( '#woocommerce-product-data' ).find( 'h3.hndle' ).unbind( 'click.postboxes' ); $( '#woocommerce-product-data' ).find( '.hndle' ).unbind( 'click.postboxes' );
jQuery( '#woocommerce-product-data' ).on( 'click', 'h3.hndle', function( event ) { jQuery( '#woocommerce-product-data' ).on( 'click', '.hndle', function( event ) {
// If the user clicks on some form input inside the h3 the box should not be toggled // If the user clicks on some form input inside the h3 the box should not be toggled
if ( $( event.target ).filter( 'input, option, label, select' ).length ) { if ( $( event.target ).filter( 'input, option, label, select' ).length ) {