1"use strict"; 2 3function woof_init_featured() { 4 5 if (icheck_skin != 'none') { 6 7 jQuery('.woof_checkbox_featured').iCheck({ 8 checkboxClass: 'icheckbox_' + icheck_skin.skin + '-' + icheck_skin.color, 9 }); 10 11 jQuery('.woof_checkbox_featured').on('ifChecked', function (event) { 12 jQuery(this).attr("checked", true); 13 woof_current_values.product_visibility = 'featured'; 14 woof_ajax_page_num = 1; 15 if (woof_autosubmit) { 16 woof_submit_link(woof_get_submit_link()); 17 } 18 }); 19 20 jQuery('.woof_checkbox_featured').on('ifUnchecked', function (event) { 21 jQuery(this).attr("checked", false); 22 delete woof_current_values.product_visibility; 23 woof_ajax_page_num = 1; 24 if (woof_autosubmit) { 25 woof_submit_link(woof_get_submit_link()); 26 } 27 }); 28 29 } else { 30 jQuery('.woof_checkbox_featured').on('change', function (event) { 31 if (jQuery(this).is(':checked')) { 32 jQuery(this).attr("checked", true); 33 woof_current_values.product_visibility = 'featured'; 34 woof_ajax_page_num = 1; 35 if (woof_autosubmit) { 36 woof_submit_link(woof_get_submit_link()); 37 } 38 } else { 39 jQuery(this).attr("checked", false); 40 delete woof_current_values.product_visibility; 41 woof_ajax_page_num = 1; 42 if (woof_autosubmit) { 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.