Trigger change() when refilling payment details

This commit is contained in:
Caleb Burks 2017-01-24 20:35:06 -06:00
parent 31f80913b1
commit 273952085c
1 changed files with 2 additions and 2 deletions

View File

@ -324,9 +324,9 @@ jQuery( function( $ ) {
if ( ID ) { if ( ID ) {
if ( 'checkbox' === $( this ).attr( 'type' ) && paymentDetails[ ID ] ) { if ( 'checkbox' === $( this ).attr( 'type' ) && paymentDetails[ ID ] ) {
$( this ).prop( 'checked', true ); $( this ).prop( 'checked', true ).change();
} else { } else {
$( this ).val( paymentDetails[ ID ] ); $( this ).val( paymentDetails[ ID ] ).change();
} }
} }
}); });