calender stuff

This commit is contained in:
th committed 2026-04-08 14:04:23 +02:00
1 parent 8e78468743
commit e0fca064ae
15 files changed
+1716 -67

No files matched your search

+7
View File
@@ -950,11 +950,18 @@ $('detail-edit')?.addEventListener('click', () => {
if (!state.viewingCard) return;
const card = state.viewingCard;
const fromGallery = state.openedFromGallery;
const fromCalendar = state._returnToCalendar;
state.openedFromSearch = false;
state.openedFromGallery = false;
state.galleryOrigin = null;
state.returnToGalleryAfterEdit = fromGallery;
state._returnToCalendar = false;
closeDetail({ animate: false, restoreGallery: false });
// Hide calendar so modal is visible
if (fromCalendar) {
$('calendar')?.classList.remove('open');
state._returnToCalendar = true;
}
$('gallery')?.classList.remove('open');
window._closeSearch();
window._openModal(card);