summaryrefslogtreecommitdiff
blob: 5994736400481fffb3dbb86b68b2f2014921c68d (plain)
1
!function(){var e=function(){var e,t,n,o=document.querySelectorAll(".jetpack-search-filters-widget__filter-list");for(e=0;e<o.length;e++)for(o[e].addEventListener("click",(function(e){var t,n,o=e.target;o.nodeName&&"a"===o.nodeName.toLowerCase()&&(t=o.previousElementSibling)&&t.type&&"checkbox"===t.type&&(t.checked=!t.checked),o.type&&"checkbox"===o.type&&(n=o.nextElementSibling)&&"a"===n.nodeName.toLowerCase()&&(window.location.href=n.getAttribute("href"))})),n=o[e].querySelectorAll('input[type="checkbox"]'),t=0;t<n.length;t++)n[t].disabled=!1,n[t].style.cursor="inherit"};"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)}();