1"use strict"; 2function woof_sections_html_items() { 3 4 var sections = jQuery('.woof_section_tab'); 5 // This file self-invokes at load time, before front.js normalises the value. 6 var request = (typeof woof_current_values === 'string') 7 ? JSON.parse(woof_current_values.replace(/\\/g, '')) 8 : woof_current_values; 9 10 jQuery.each(sections, function (e, item) { 11 var _this = this; 12 jQuery.each(request, function (k, val) { 13 14 var selected = jQuery(_this).find(".woof_container_" + k); 15 if (jQuery(selected).length) { 16 if (!jQuery(_this).prev('label').prev("input:checked").length) { 17 jQuery(_this).prev('label').trigger('click'); 18 } 19 20 } 21 }); 22 23 24 }); 25 26 woof_sections_check_empty_items(); 27 28} 29 30function woof_sections_check_empty_items(){ 31 var sections = jQuery('.woof_section_tab'); 32 jQuery.each(sections, function (e, item) { 33 setTimeout(function(){ 34 var filters = jQuery(item).find('.woof_container'); 35 var hidden_filter = 0; 36 jQuery.each(filters, function (e, filter) { 37 if (jQuery(filter).is(":hidden")){ 38 hidden_filter++; 39 } 40 }); 41 if(filters.length == hidden_filter || filters.length == 0){ 42 jQuery(item).prev('.woof_section_tab_label').hide(); 43 jQuery(item).hide(); 44 } 45 }, 1500); 46 47 }); 48} 49document.addEventListener('woof-ajax-form-redrawing', (e) => { 50 woof_sections_check_empty_items(); 51}); 52 53woof_sections_html_items();
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.