diff options
Diffstat (limited to 'static')
-rwxr-xr-x | static/js/site.js | 7 |
1 files changed, 1 insertions, 6 deletions
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(); } }); |