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