var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); function woof_init_checkboxes() { if (icheck_skin != 'none') { jQuery('.woof_checkbox_term').iCheck('destroy'); jQuery('.woof_checkbox_term').iCheck({ checkboxClass: 'icheckbox_' + icheck_skin.skin + '-' + icheck_skin.color, //checkboxClass: 'icheckbox_square-green' }); jQuery('.woof_checkbox_term').unbind('ifChecked'); jQuery('.woof_checkbox_term').on('ifChecked', function (event) { jQuery(this).attr("checked", true); jQuery(".woof_select_radio_check input").attr('disabled','disabled'); woof_checkbox_process_data(this, true); }); jQuery('.woof_checkbox_term').unbind('ifUnchecked'); jQuery('.woof_checkbox_term').on('ifUnchecked', function (event) { jQuery(this).attr("checked", false); woof_checkbox_process_data(this, false); }); //this script should be, because another way wrong way of working if to click on the label jQuery('.woof_checkbox_label').unbind(); jQuery('label.woof_checkbox_label').click(function () { if(jQuery(this).prev().find('.woof_checkbox_term').is(':disabled')){ return false; } if (jQuery(this).prev().find('.woof_checkbox_term').is(':checked')) { jQuery(this).prev().find('.woof_checkbox_term').trigger('ifUnchecked'); jQuery(this).prev().removeClass('checked'); } else { jQuery(this).prev().find('.woof_checkbox_term').trigger('ifChecked'); jQuery(this).prev().addClass('checked'); } }); //*** } else { jQuery('.woof_checkbox_term').on('change', function (event) { if (jQuery(this).is(':checked')) { jQuery(this).attr("checked", true); woof_checkbox_process_data(this, true); } else { jQuery(this).attr("checked", false); woof_checkbox_process_data(this, false); } }); } } function woof_checkbox_process_data(_this, is_checked) { var tax = jQuery(_this).data('tax'); var name = jQuery(_this).attr('name'); var term_id = jQuery(_this).data('term-id'); woof_checkbox_direct_search(term_id, name, tax, is_checked); } function woof_checkbox_direct_search(term_id, name, tax, is_checked) { var values = ''; var checked = true; if (is_checked) { if (tax in woof_current_values) { woof_current_values[tax] = woof_current_values[tax] + ',' + name; } else { woof_current_values[tax] = name; } checked = true; } else { values = woof_current_values[tax]; values = values.split(','); var tmp = []; jQuery.each(values, function (index, value) { if (value != name) { tmp.push(value); } }); values = tmp; if (values.length) { woof_current_values[tax] = values.join(','); } else { delete woof_current_values[tax]; } checked = false; } jQuery('.woof_checkbox_term_' + term_id).attr('checked', checked); woof_ajax_page_num = 1; if (woof_autosubmit) { woof_submit_link(woof_get_submit_link()); } } } /* FILE ARCHIVED ON 20:01:08 Jan 04, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 14:29:44 Sep 14, 2022. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 105.804 exclusion.robots: 0.107 exclusion.robots.policy: 0.099 cdx.remote: 0.079 esindex: 0.009 LoadShardBlock: 80.084 (3) PetaboxLoader3.datanode: 78.117 (4) CDXLines.iter: 14.03 (3) load_resource: 50.133 */