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_mselects() { try { // jQuery("select.woof_select").chosen('destroy').trigger("liszt:updated"); jQuery("select.woof_mselect").chosen(/*{disable_search_threshold: 10}*/); } catch (e) { } jQuery('.woof_mselect').change(function (a) { var slug = jQuery(this).val(); var name = jQuery(this).attr('name'); //fix for multiselect if in chosen mode remove options if (is_woof_use_chosen) { var vals = jQuery(this).chosen().val(); jQuery('.woof_mselect[name=' + name + '] option:selected').removeAttr("selected"); jQuery('.woof_mselect[name=' + name + '] option').each(function (i, option) { var v = jQuery(this).val(); if (jQuery.inArray(v, vals) !== -1) { jQuery(this).prop("selected", true); } }); } woof_mselect_direct_search(name, slug); return true; }); } function woof_mselect_direct_search(name, slug) { //mode with Filter button var values = []; jQuery('.woof_mselect[name=' + name + '] option:selected').each(function (i, v) { values.push(jQuery(this).val()); }); //duplicates removing //http://stackoverflow.com/questions/9229645/remove-duplicates-from-javascript-array values = values.filter(function (item, pos) { return values.indexOf(item) == pos; }); values = values.join(','); if (values.length) { woof_current_values[name] = values; } else { delete woof_current_values[name]; } woof_ajax_page_num = 1; if (woof_autosubmit) { woof_submit_link(woof_get_submit_link()); } } } /* FILE ARCHIVED ON 20:01:03 Jan 04, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 14:29:45 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: 72.162 exclusion.robots: 0.107 exclusion.robots.policy: 0.097 RedisCDXSource: 1.053 esindex: 0.008 LoadShardBlock: 52.57 (3) PetaboxLoader3.datanode: 58.34 (4) CDXLines.iter: 15.697 (3) load_resource: 66.92 PetaboxLoader3.resolve: 30.344 */