[2.4] Fixed product type select in wp 4.4
This commit is contained in:
parent
7d251cb449
commit
d66427bd8a
|
@ -477,7 +477,7 @@ ul.wc_coupon_list_block {
|
|||
}
|
||||
|
||||
#woocommerce-order-data {
|
||||
h3.hndle,
|
||||
.hndle,
|
||||
.handlediv {
|
||||
display: none;
|
||||
}
|
||||
|
@ -2445,7 +2445,7 @@ img.help_tip {
|
|||
}
|
||||
|
||||
#woocommerce-product-data {
|
||||
h3.hndle {
|
||||
.hndle {
|
||||
padding: 10px;
|
||||
|
||||
span {
|
||||
|
|
|
@ -26,13 +26,13 @@ jQuery( function( $ ) {
|
|||
});
|
||||
|
||||
// Type box
|
||||
$( '.type_box' ).appendTo( '#woocommerce-product-data h3.hndle span' );
|
||||
$( '.type_box' ).appendTo( '#woocommerce-product-data .hndle span' );
|
||||
|
||||
$( function() {
|
||||
// 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 ( $( event.target ).filter( 'input, option, label, select' ).length ) {
|
||||
|
|
Loading…
Reference in New Issue