diff --git a/assets/js/admin/wc-nyp-suggested-amounts-metabox.js b/assets/js/admin/wc-nyp-suggested-amounts-metabox.js index 6694ee5..8328e2d 100644 --- a/assets/js/admin/wc-nyp-suggested-amounts-metabox.js +++ b/assets/js/admin/wc-nyp-suggested-amounts-metabox.js @@ -53,6 +53,9 @@ jQuery( function( $ ) { $( '.wc_nyp_add_suggested_amounts' ).on( 'keypress', '.wc_input_price', this.enter_amount ); $( '#wc_nyp_suggested_amounts' ).on( 'click', '.remove_amount', this.remove_amount ); $( '#wc_nyp_suggested_amounts' ).on( 'wc_nyp_suggested_amounts_changed', this.update_amounts ); + + // Toggle initially. + $( '#wc_nyp_use_suggested_amounts' ).trigger( 'change' ); },