diff options
author | sptaule <lecas83@gmail.com> | 2022-01-31 18:43:17 +0100 |
---|---|---|
committer | sptaule <lecas83@gmail.com> | 2022-01-31 18:43:17 +0100 |
commit | e463223e15ff95ba58726ddf7b652a1a9cd41059 (patch) | |
tree | 2bcfcd8d17a678d760a1248d5329dbe9bc23a313 /static/js/site.js | |
parent | 608c3f7759f2edf6b8defcf2abe0a9031184c136 (diff) | |
download | garagehq.deuxfleurs.fr-e463223e15ff95ba58726ddf7b652a1a9cd41059.tar.gz garagehq.deuxfleurs.fr-e463223e15ff95ba58726ddf7b652a1a9cd41059.zip |
Fix doc submenus states, doc links hover, split page & global ToC
Diffstat (limited to 'static/js/site.js')
-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(); } }); |