Korrektur Pop-up schliessen
This commit is contained in:
1 parent
dc2a34cde9
commit
65903d9cce
7 files changed
+22
-24
No files matched your search
+3
-5
@@ -460,11 +460,9 @@
|
||||
<button class="${actionButtonVariantClass.trim()}" type="button" data-register-button ${actionButtonDisabled ? 'disabled' : ''}>
|
||||
${actionButtonLabel}
|
||||
</button>
|
||||
${isRegistered && deregInfo.daysLeft !== null ? `
|
||||
<small class="detail-dereg-hint${deregInfo.isClosed ? ' detail-dereg-hint--closed' : ''}">
|
||||
${deregInfo.isClosed ? 'Abmeldefrist abgelaufen'
|
||||
: deregInfo.daysLeft === 1 ? 'Noch 1 Tag zur Abmeldung'
|
||||
: `Noch ${deregInfo.daysLeft} Tage zur Abmeldung`}
|
||||
${isRegistered && deregInfo.isClosed ? `
|
||||
<small class="detail-dereg-hint detail-dereg-hint--closed">
|
||||
Abmeldefrist abgelaufen
|
||||
</small>
|
||||
` : ''}
|
||||
</div>
|
||||
|
||||
@@ -778,7 +778,7 @@
|
||||
// Info button modal behavior
|
||||
const infoButton = document.getElementById('info-button');
|
||||
const infoModal = document.getElementById('info-modal');
|
||||
const modalClose = infoModal?.querySelector('modal-close');
|
||||
const modalClose = infoModal?.querySelector('.modal-close');
|
||||
|
||||
if (infoButton && infoModal) {
|
||||
infoButton.addEventListener('click', () => {
|
||||
@@ -828,3 +828,10 @@ function closeUnregisterModal() {
|
||||
modal.classList.remove('show');
|
||||
}
|
||||
}
|
||||
|
||||
function closeInfoModal() {
|
||||
const modal = document.getElementById('info-modal');
|
||||
if (modal) {
|
||||
modal.classList.remove('show');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user