frontend credit-card-form jshinted and coding standards

This commit is contained in:
splashingpixels 2014-03-19 15:46:59 -07:00 committed by Mike Jolley
parent 3a54142299
commit eebe726c10
2 changed files with 10 additions and 10 deletions

View File

@ -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' );
});
} );

View File

@ -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")})})