1"use strict"; 2 3function woof_init_author() { 4 if (icheck_skin != 'none') { 5 6 jQuery('.woof_checkbox_author').iCheck('destroy'); 7 8 let icheck_selector = '.woof_checkbox_author'; 9 let skin = jQuery(icheck_selector).parents('.woof_redraw_zone').eq(0).data('icheck-skin'); 10 if (skin) { 11 skin = skin.split('_'); 12 jQuery(icheck_selector).iCheck({ 13 checkboxClass: 'icheckbox_' + skin[0] + '-' + skin[1] 14 }); 15 } else { 16 jQuery(icheck_selector).iCheck({ 17 checkboxClass: 'icheckbox_' + icheck_skin.skin + '-' + icheck_skin.color 18 }); 19 } 20 21 //+++ 22 23 jQuery('.woof_checkbox_author').on('ifChecked', function (event) { 24 jQuery(this).attr("checked", true); 25 26 woof_current_values.woof_author = get_current_checked(this); 27 woof_ajax_page_num = 1; 28 if (woof_autosubmit) { 29 woof_submit_link(woof_get_submit_link()); 30 } 31 }); 32 33 jQuery('.woof_checkbox_author').on('ifUnchecked', function (event) { 34 jQuery(this).attr("checked", false); 35 jQuery(this).removeAttr("checked"); 36 37 woof_current_values.woof_author = get_current_checked(this); 38 woof_ajax_page_num = 1; 39 if (woof_autosubmit) { 40 woof_submit_link(woof_get_submit_link()); 41 } 42 }); 43 44 } else { 45 jQuery('.woof_checkbox_author').on('change', function (event) { 46 47 if (jQuery(this).is(':checked')) { 48 jQuery(this).attr("checked", true); 49 woof_current_values.woof_author = get_current_checked(this); 50 woof_ajax_page_num = 1; 51 if (woof_autosubmit) { 52 woof_submit_link(woof_get_submit_link()); 53 } 54 } else { 55 jQuery(this).attr("checked", false); 56 woof_current_values.woof_author = get_current_checked(this); 57 woof_ajax_page_num = 1; 58 if (woof_autosubmit) { 59 woof_submit_link(woof_get_submit_link()); 60 } 61 } 62 }); 63 } 64 65 66 function get_current_checked(_this) { 67 var values = []; 68 jQuery(_this).parents('.woof_authors').find('.woof_checkbox_author').each(function (i, el) { 69 if (jQuery(this).attr("checked") == 'checked') { 70 values.push(jQuery(this).val()); 71 72 } 73 74 }); 75 76 values = values.filter((v, i, a) => a.indexOf(v) === i); 77 return values.join(','); 78 } 79 80}
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.