Update deprecated jQuery functions for meta-boxes-coupon.js
This commit is contained in:
parent
13a9dbb422
commit
6e50fc0cf1
|
@ -61,7 +61,7 @@ jQuery(function( $ ) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$result = woocommerce_admin_meta_boxes_coupon.prefix + $result + woocommerce_admin_meta_boxes_coupon.suffix;
|
$result = woocommerce_admin_meta_boxes_coupon.prefix + $result + woocommerce_admin_meta_boxes_coupon.suffix;
|
||||||
$coupon_code_field.focus().val( $result );
|
$coupon_code_field.trigger( 'focus' ).val( $result );
|
||||||
$coupon_code_label.addClass( 'screen-reader-text' );
|
$coupon_code_label.addClass( 'screen-reader-text' );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue