frontend credit-card-form jshinted and coding standards
This commit is contained in:
parent
3a54142299
commit
eebe726c10
|
@ -1,12 +1,12 @@
|
|||
jQuery( function() {
|
||||
jQuery('.wc-credit-card-form-card-number').payment('formatCardNumber');
|
||||
jQuery('.wc-credit-card-form-card-expiry').payment('formatCardExpiry');
|
||||
jQuery('.wc-credit-card-form-card-cvc').payment('formatCardCVC');
|
||||
jQuery( function( $ ) {
|
||||
$( '.wc-credit-card-form-card-number' ).payment( 'formatCardNumber' );
|
||||
$( '.wc-credit-card-form-card-expiry' ).payment( 'formatCardExpiry' );
|
||||
$( '.wc-credit-card-form-card-cvc' ).payment( 'formatCardCVC' );
|
||||
|
||||
jQuery('body')
|
||||
.on('updated_checkout', function() {
|
||||
jQuery('.wc-credit-card-form-card-number').payment('formatCardNumber');
|
||||
jQuery('.wc-credit-card-form-card-expiry').payment('formatCardExpiry');
|
||||
jQuery('.wc-credit-card-form-card-cvc').payment('formatCardCVC');
|
||||
$( 'body' )
|
||||
.on( 'updated_checkout', function() {
|
||||
$( '.wc-credit-card-form-card-number' ).payment( 'formatCardNumber' );
|
||||
$( '.wc-credit-card-form-card-expiry' ).payment( 'formatCardExpiry' );
|
||||
$( '.wc-credit-card-form-card-cvc' ).payment( 'formatCardCVC' );
|
||||
});
|
||||
} );
|
|
@ -1 +1 @@
|
|||
jQuery(function(){jQuery(".wc-credit-card-form-card-number").payment("formatCardNumber"),jQuery(".wc-credit-card-form-card-expiry").payment("formatCardExpiry"),jQuery(".wc-credit-card-form-card-cvc").payment("formatCardCVC"),jQuery("body").on("updated_checkout",function(){jQuery(".wc-credit-card-form-card-number").payment("formatCardNumber"),jQuery(".wc-credit-card-form-card-expiry").payment("formatCardExpiry"),jQuery(".wc-credit-card-form-card-cvc").payment("formatCardCVC")})});
|
||||
jQuery(function(e){e(".wc-credit-card-form-card-number").payment("formatCardNumber");e(".wc-credit-card-form-card-expiry").payment("formatCardExpiry");e(".wc-credit-card-form-card-cvc").payment("formatCardCVC");e("body").on("updated_checkout",function(){e(".wc-credit-card-form-card-number").payment("formatCardNumber");e(".wc-credit-card-form-card-expiry").payment("formatCardExpiry");e(".wc-credit-card-form-card-cvc").payment("formatCardCVC")})})
|
Loading…
Reference in New Issue