1"use strict"; 2function woof_init_selects() { 3 4 if (woof_select_type == 'chosen') { 5 jQuery("select.woof_select, select.woof_price_filter_dropdown").chosen(); 6 } else if (woof_select_type == 'selectwoo') { 7 jQuery("select.woof_select, select.woof_price_filter_dropdown").selectWoo(); 8 } 9 10 jQuery('.woof_select').change(function () { 11 var slug = jQuery(this).val(); 12 var name = jQuery(this).attr('name'); 13 woof_select_direct_search(this, name, slug); 14 }); 15 16 var containers = jQuery('.woof_hide_empty_container'); 17 jQuery.each(containers, function(i, item){ 18 var selector= jQuery(item).val(); 19 if(selector){ 20 jQuery(selector).hide(); 21 } 22 23 }); 24 25} 26 27function woof_select_direct_search(_this, name, slug) { 28 29 jQuery.each(woof_current_values, function (index, value) { 30 if (index == name) { 31 delete woof_current_values[name]; 32 return; 33 } 34 }); 35 36 if (slug != 0) { 37 woof_current_values[name] = slug; 38 } 39 40 woof_ajax_page_num = 1; 41 if (woof_autosubmit || jQuery(_this).within('.woof').length == 0) { 42 woof_submit_link(woof_get_submit_link()); 43 } 44 45} 46 47
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.