[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX][UX] Calendar: fix close modal after event deletion
"Adrien Mbuya Maloba \(@adrienmaloba\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a2f184596771_38e6c66d82911c@gitlab-sidekiq-low-urgency-cpu-bound-v2-c9f44b7d4-z8j7t.mail> |
Adrien Mbuya Maloba pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
03520545 by Adrien Mbuya Maloba at 2026-06-15T00:02:17+03:00
[FIX][UX] Calendar: fix close modal after event deletion
---
* [FIX][UX] Calendar: fix close modal after event deletion
See merge request tikiwiki/tiki!10523
- - - - -
1 changed file:
- lib/jquery_tiki/tiki-calendar_edit_item.js
Changes:
=====================================
lib/jquery_tiki/tiki-calendar_edit_item.js
=====================================
@@ -381,10 +381,11 @@ function deletecalItem(event_id, event_name) {
$.service("calendar", "delete_item"),
{calitemId:event_id},
function (data) {
- if (typeof calendar.refetchEvents == 'function') {
+ if (typeof window.calendar !== 'undefined' && typeof window.calendar.refetchEvents === 'function') {
calendar.refetchEvents();
$.closeModal({all: true});
}else{
+ $.closeModal({all: true});
location.reload();
}
}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/03520545c2a34381c8316e5fe913c37a595beeb5
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/03520545c2a34381c8316e5fe913c37a595beeb5
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs