From d66427bd8a77bbbc4126fa71d8a92f5994a63039 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 6 Nov 2015 13:51:17 -0200 Subject: [PATCH] [2.4] Fixed product type select in wp 4.4 --- assets/css/admin.scss | 4 ++-- assets/js/admin/meta-boxes-product.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/css/admin.scss b/assets/css/admin.scss index b129ff77ed0..282d1743e8c 100644 --- a/assets/css/admin.scss +++ b/assets/css/admin.scss @@ -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 { diff --git a/assets/js/admin/meta-boxes-product.js b/assets/js/admin/meta-boxes-product.js index 7716dbd62ac..2d0c31b3a40 100644 --- a/assets/js/admin/meta-boxes-product.js +++ b/assets/js/admin/meta-boxes-product.js @@ -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 ) {