1/** Pass product details to contact form fields */ 2jQuery("body").on("click", ".wqoecf_enquiry_button", function () { 3 var loading_img_path = jQuery(".wqoecf-pop-up-box").attr("data-loader-path"); 4 jQuery("body").append('<div class="wqoecf_loading"><img src="' + loading_img_path + '" class="wqoecf_loader"></div>'); 5 var loading = jQuery(".wqoecf_loading"); 6 loading.show(); 7 var product_id = jQuery(this).attr("data-product-id"); 8 var product_title = jQuery(this).attr("data-product-title"); 9 var product_sku = jQuery(this).attr("data-product-sku"); 10 11 jQuery(".wqoecf-pop-up-box .wpcf7 > form")[0].reset(); 12 jQuery("div.wqoecf-pop-up-box .wpcf7 input[name='product-id']").val(product_id); 13 jQuery("div.wqoecf-pop-up-box .wpcf7 input[name='product-name']").val(product_title); 14 jQuery("div.wqoecf-pop-up-box .wpcf7 input[name='product-sku']").val(product_sku); 15 16 jQuery('.wqoecf-pop-up-box div.wpcf7>form input[name="product-id"]').attr("readonly", true); 17 jQuery('.wqoecf-pop-up-box div.wpcf7>form input[name="product-name"]').attr("readonly", true); 18 jQuery('.wqoecf-pop-up-box div.wpcf7>form input[name="product-sku"]').attr("readonly", true); 19 loading.remove(); 20 21 jQuery(".wqoecf-pop-up-box").fadeIn(); 22}); 23 24/** Handler to prevent multiple clicks on submit button */ 25jQuery(document).on("click", ".wqoecf-pop-up-box form.submitting .wpcf7-submit", function (e) { 26 e.preventDefault(); 27 return false; 28}); 29 30/** Function ton hide modal */ 31function wqoecf_hide() { 32 jQuery(".wqoecf-pop-up-box").fadeOut(); 33 jQuery(".wqoecf-pop-up-box .wpcf7-not-valid-tip").css("display", "none"); 34}
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.