1/** 2* wcj-checkout-core-fields. 3* 4* @version 1.0.0 5* @since 1.0.0 6*/ 7 8jQuery(document).ready(function () { 9 jQuery.each(wcj_checkout_core_fields, function (i, wcj_checkout_core_field_sections) { 10 jQuery.each(wcj_checkout_core_field_sections, function (i, wcj_checkout_core_field_section) { 11 jQuery.each(wcj_checkout_core_field_section, function (field, wcj_checkout_core_field) { 12 jQuery("p#" + field + '_field' + " label").each(function () { 13 var required_star = '<abbr class="required" title="required">*</abbr>' 14 var is_required = wcj_checkout_core_field.required 15 var field_label = wcj_checkout_core_field.label 16 if (is_required == 1 || is_required) { 17 field_label = field_label + " " + required_star 18 } 19 jQuery(this).html(field_label); 20 }); 21 22 jQuery("p#" + field + '_field').each(function () { 23 jQuery(this).removeClass("form-row-wide"); 24 if (wcj_checkout_core_field.class == null){ 25 }else{ 26 jQuery(this).addClass(wcj_checkout_core_field.class[0]); 27 } 28 }); 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.