1jQuery(function() { 2 if(typeof trigger == "undefined"){ 3 var trigger = false; 4 jQuery('#billing_address_1').addClass('billing_address1'); 5 jQuery('#billing_address_2').addClass('billing_address_2'); 6 jQuery('#shipping_address_1').addClass('shipping_address_1'); 7 jQuery('#shipping_address_2').addClass('shipping_address_2'); 8 jQuery('#shipping_city').addClass('shipping_city'); 9 jQuery('#billing_city').addClass('billing_city'); 10 jQuery('#billing_postcode').addClass('billing_postcode'); 11 jQuery('#shipping_postcode').addClass('shipping_postcode'); 12 13 jQuery('.billing_address1 , .billing_address_2 , \n\ 14 .shipping_address_1 , .shipping_address_2 , \n\ 15 .shipping_city , .billing_city , .billing_postcode , \n\ 16 .shipping_postcode').on('keydown' , function(event){ 17 if(trigger == false){ 18 event.stopImmediatePropagation(); 19 } 20 trigger = false; 21 }); 22 23 jQuery('.billing_address1 , .billing_address_2 , \n\ 24 .shipping_address_1 , .shipping_address_2 , \n\ 25 .shipping_city , .billing_city , .billing_postcode , \n\ 26 .shipping_postcode').on('change' , function(event){ 27 trigger = true; 28 jQuery('.billing_address1').trigger('keydown'); 29 30 }); 31 } 32});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.