Update deprecated jQuery functions for meta-boxes-order.js
This commit is contained in:
parent
6e50fc0cf1
commit
18797493b3
|
@ -22,7 +22,7 @@ jQuery( function ( $ ) {
|
|||
this.states = JSON.parse( woocommerce_admin_meta_boxes_order.countries.replace( /"/g, '"' ) );
|
||||
}
|
||||
|
||||
$( '.js_field-country' ).selectWoo().change( this.change_country );
|
||||
$( '.js_field-country' ).selectWoo().on( 'change', this.change_country );
|
||||
$( '.js_field-country' ).trigger( 'change', [ true ] );
|
||||
$( document.body ).on( 'change', 'select.js_field-state', this.change_state );
|
||||
$( '#woocommerce-order-actions input, #woocommerce-order-actions a' ).on( 'click', function() {
|
||||
|
@ -117,8 +117,8 @@ jQuery( function ( $ ) {
|
|||
},
|
||||
|
||||
init_tiptip: function() {
|
||||
$( '#tiptip_holder' ).removeAttr( 'style' );
|
||||
$( '#tiptip_arrow' ).removeAttr( 'style' );
|
||||
$( '#tiptip_holder' )[0].removeAttribute( 'style' );
|
||||
$( '#tiptip_arrow' )[0].removeAttribute( 'style' );
|
||||
$( '.tips' ).tipTip({
|
||||
'attribute': 'data-tip',
|
||||
'fadeIn': 50,
|
||||
|
@ -140,7 +140,7 @@ jQuery( function ( $ ) {
|
|||
is_billing = Boolean( $edit_address.find( 'input[name^="_billing_"]' ).length );
|
||||
|
||||
$address.hide();
|
||||
$this.parent().find( 'a' ).toggle();
|
||||
$this.parent().find( 'a' ).trigger( 'toggle' );
|
||||
|
||||
if ( ! $country_input.val() ) {
|
||||
$country_input.val( woocommerce_admin_meta_boxes_order.default_country ).trigger( 'change' );
|
||||
|
|
Loading…
Reference in New Issue