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 opens = _____WB$wombat$assign$function_____("opens"); (function($) { Drupal.behaviors.custom_search = { attach: function(context) { if (!Drupal.settings.custom_search.solr) { // Check if the search box is not empty on submit $('form.search-form', context).submit(function(){ var $this = $(this); var box = $this.find('input.custom-search-box'); if (box.val() != undefined && box.val() == '') { $this.find('input.custom-search-box').addClass('error'); return false; } // If basic search is hidden, copy or value to the keys if ($this.find('#edit-keys').parents('div.element-invisible').attr('class') == 'element-invisible') { $this.find('#edit-keys').val($this.find('#edit-or').val()); $this.find('#edit-or').val(''); } return true; }); } // Search from target $('form.search-form').attr('target', Drupal.settings.custom_search.form_target); // Displays Popup. $('form.search-form input.custom-search-box', context).bind('click focus', function(e){ var $parentForm = $(this).parents('form'); // check if there's something in the popup and displays it var popup = $parentForm.find('fieldset.custom_search-popup'); if (popup.find('input,select').length && !popup.hasClass('opened')) { popup.fadeIn().addClass('opened'); } e.stopPropagation(); }); $(document).bind('click focus', function(){ $('fieldset.custom_search-popup').hide().removeClass('opened'); }); // Handle checkboxes $('.custom-search-selector input:checkbox', context).each(function(){ var el = $(this); if (el.val() == 'c-all') { el.change(function(){ $(this).parents('.custom-search-selector').find('input:checkbox[value!=c-all]').attr('checked', false); }); } else { if (el.val().substr(0,2) == 'c-') { el.change(function(){ $('.custom-search-selector input:checkbox').each(function(){ if ($(this).val().substr(0,2) == 'o-') { $(this).attr('checked', false); } }); $(this).parents('.custom-search-selector').find('input:checkbox[value=c-all]').attr('checked', false); }); } else { el.change(function(){ $(this).parents('.custom-search-selector').find('input:checkbox[value!=' + el.val() + ']').attr('checked', false); }); } } }); // Handle popup. var popup = $('fieldset.custom_search-popup:not(.custom_search-processed)', context).addClass("custom_search-processed"); popup.click(function(e){ e.stopPropagation(); }) popup.append('' + Drupal.t('Close') + ''); $('a.custom_search-popup-close').click(function(e){ $('fieldset.custom_search-popup.opened').hide().removeClass('opened'); e.preventDefault(); }); } } })(jQuery); } /* FILE ARCHIVED ON 01:22:55 Sep 06, 2020 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 17:41:35 Mar 01, 2026. 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: 0.747 exclusion.robots: 0.071 exclusion.robots.policy: 0.057 esindex: 0.013 cdx.remote: 46.118 LoadShardBlock: 96.032 (3) PetaboxLoader3.datanode: 98.173 (4) load_resource: 93.378 PetaboxLoader3.resolve: 63.598 */