From e463223e15ff95ba58726ddf7b652a1a9cd41059 Mon Sep 17 00:00:00 2001 From: sptaule Date: Mon, 31 Jan 2022 18:43:17 +0100 Subject: Fix doc submenus states, doc links hover, split page & global ToC --- static/js/site.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'static') diff --git a/static/js/site.js b/static/js/site.js index d8e0d69..77913c3 100755 --- a/static/js/site.js +++ b/static/js/site.js @@ -195,12 +195,7 @@ function documentReadyCallback() { } document.addEventListener('click', function(ev) { - if (ev.target.matches('#nav-search-btn') || ev.target.matches('#nav-search-btn-icon')) { - openSearchModal(); - } - else if (ev.target.matches('#close-modal-btn') - || ev.target.matches('#close-modal-btn-icon') - || !ev.target.closest('#search-modal')) { + if (!ev.target.closest('#search-modal')) { closeSearchModal(); } }); -- cgit v1.2.3