diff --git a/assets/js/admin/meta-boxes-product-variation.js b/assets/js/admin/meta-boxes-product-variation.js index 551ad33a114..b34461cff86 100644 --- a/assets/js/admin/meta-boxes-product-variation.js +++ b/assets/js/admin/meta-boxes-product-variation.js @@ -116,8 +116,8 @@ jQuery( function( $ ) { } // Init TipTip - $( '#tiptip_holder' ).removeAttr( 'style' ); - $( '#tiptip_arrow' ).removeAttr( 'style' ); + $( '#tiptip_holder' )[0].removeAttribute( 'style' ); + $( '#tiptip_arrow' )[0].removeAttribute( 'style' ); $( '.woocommerce_variations .tips, .woocommerce_variations .help_tip, .woocommerce_variations .woocommerce-help-tip', wrapper ) .tipTip({ 'attribute': 'data-tip', @@ -594,7 +594,7 @@ jQuery( function( $ ) { $( '.woocommerce-notice-invalid-variation' ).remove(); $( '#variable_product_options' ).find( '.woocommerce_variations' ).prepend( variation ); - $( 'button.cancel-variation-changes, button.save-variation-changes' ).removeAttr( 'disabled' ); + $( 'button.cancel-variation-changes, button.save-variation-changes' )[0].removeAttribute( 'disabled' ); $( '#variable_product_options' ).trigger( 'woocommerce_variations_added', 1 ); wc_meta_boxes_product_variations_ajax.unblock(); }); @@ -700,7 +700,7 @@ jQuery( function( $ ) { .closest( '.woocommerce_variation' ) .addClass( 'variation-needs-update' ); - $( 'button.cancel-variation-changes, button.save-variation-changes' ).removeAttr( 'disabled' ); + $( 'button.cancel-variation-changes, button.save-variation-changes' )[0].removeAttribute( 'disabled' ); $( '#variable_product_options' ).trigger( 'woocommerce_variations_input_changed' ); }, @@ -714,7 +714,7 @@ jQuery( function( $ ) { .find( '.woocommerce_variation:first' ) .addClass( 'variation-needs-update' ); - $( 'button.cancel-variation-changes, button.save-variation-changes' ).removeAttr( 'disabled' ); + $( 'button.cancel-variation-changes, button.save-variation-changes' )[0].removeAttribute( 'disabled' ); $( '#variable_product_options' ).trigger( 'woocommerce_variations_defaults_changed' ); },