Skip to content

Commit

Permalink
Hide suggested price input on load if using suggested amounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
helgatheviking committed Jul 13, 2022
1 parent 2061540 commit e047293
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/admin/wc-nyp-suggested-amounts-metabox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
},


Expand Down

0 comments on commit e047293

Please sign in to comment.