aboutsummaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authorsptaule <lecas83@gmail.com>2022-01-31 18:43:17 +0100
committersptaule <lecas83@gmail.com>2022-01-31 18:43:17 +0100
commite463223e15ff95ba58726ddf7b652a1a9cd41059 (patch)
tree2bcfcd8d17a678d760a1248d5329dbe9bc23a313 /static/js
parent608c3f7759f2edf6b8defcf2abe0a9031184c136 (diff)
downloadgaragehq.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')
-rwxr-xr-xstatic/js/site.js7
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();
}
});