From 31b435e24cab878b729dab981a0afcc81c581409 Mon Sep 17 00:00:00 2001 From: James Dinh Date: Fri, 16 Dec 2022 19:20:01 -0800 Subject: [PATCH] Fixed inner modal closing bugs --- css/general.css | 2 ++ index.html | 4 ++-- js/general.js | 5 +---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/css/general.css b/css/general.css index f7f5732..ec374d5 100644 --- a/css/general.css +++ b/css/general.css @@ -1762,6 +1762,7 @@ section { border-radius: 0.2rem; font-size: 18px; border-top: thin solid rgb(68, 68, 68); + cursor: pointer; } .event span { display: block; @@ -1771,6 +1772,7 @@ section { } .event.empty { background-color: unset; + cursor: unset; } .event.start-800 { diff --git a/index.html b/index.html index eb8e578..e7076b1 100644 --- a/index.html +++ b/index.html @@ -622,7 +622,7 @@

Workshops


-

Our workshops will be hosted in-person and on Zoom!

+

Our workshops will be hosted in-person!

@@ -860,7 +860,7 @@
profile picture

Jonathan Tessmann

-
Sponsor Outreach
+
Outreach Assist
Alsace#5031
diff --git a/js/general.js b/js/general.js index 230d362..09066e3 100644 --- a/js/general.js +++ b/js/general.js @@ -362,10 +362,7 @@ document.addEventListener( function (event) { // If user either clicks X button OR clicks outside the modal window, then close modal by calling closeModal() if (!openClick && openModal == true) { - if ( - event.target.matches(".button-close-modal") || - !event.target.closest(currentModal) - ) { + if (event.target.matches(".button-close-modal") || !event.target.closest(".modal")) { closeModal(currentModal); } }