1jQuery( document ).ready(function() { 2 3 jQuery('#billing_country').select2({ 4 dropdownParent: jQuery('#logged_in-checkout') 5 }); 6 7 if (jQuery('#billing_state').hasClass("select2-hidden-accessible")) { 8 jQuery('#billing_state').select2('destroy'); 9 jQuery('#billing_state').select2({ 10 dropdownParent: jQuery('#logged_in-checkout') 11 }); 12 } else { 13 jQuery('#billing_state').select2({ 14 dropdownParent: jQuery('#logged_in-checkout') 15 }); 16 } 17 18 if (typeof is_mobile !== 'undefined' && is_mobile) { 19 if (jQuery('#billing_country').hasClass("select2-hidden-accessible")) { 20 jQuery('#billing_country').select2('destroy'); 21 } 22 23 if (jQuery('#billing_state').hasClass("select2-hidden-accessible")) { 24 jQuery('#billing_state').select2('destroy'); 25 } 26 } 27 28 jQuery(document).on('select2:select', '#billing_country', function (e) { 29 30 if (typeof is_mobile !== 'undefined' && is_mobile) { 31 if (jQuery('#billing_state').hasClass("select2-hidden-accessible")) { 32 jQuery('#billing_state').select2('destroy'); 33 } 34 35 if (jQuery('#billing_country').hasClass("select2-hidden-accessible")) { 36 jQuery('#billing_country').select2('destroy'); 37 } 38 } else { 39 setTimeout(function () { 40 if (jQuery('#billing_country').hasClass("select2-hidden-accessible")) { 41 jQuery('#billing_country').select2('destroy'); 42 jQuery('#billing_country').select2({ 43 dropdownParent: jQuery('#logged_in-checkout'), 44 }); 45 } 46 if (jQuery('#billing_state').hasClass('select2-hidden-accessible')) { 47 jQuery('#billing_state').select2("destroy"); 48 jQuery('#billing_state').select2({ 49 dropdownParent: jQuery('#logged_in-checkout'), 50 }); 51 } 52 53 }, 1000); 54 55 } 56 }); 57 58});
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.