[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][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 | <6a2f26fa59181_38b143b2810572c@gitlab-sidekiq-low-urgency-cpu-bound-v2-c9f44b7d4-5z627.mail> |
Adrien Mbuya Maloba pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
1427fb9e by Adrien Mbuya Maloba at 2026-06-15T01:05:50+03:00
[BP][FIX][UX] Calendar: fix close modal after event deletion
---
* [FIX][UX] Calendar: fix close modal after event deletion
---
* [FIX][UX] Calendar: fix close modal after event deletion
See merge request tikiwiki/tiki!10523
See merge request tikiwiki/tiki!10524
- - - - -
1 changed file:
- lib/jquery_tiki/tiki-calendar_edit_item.js
Changes:
=====================================
lib/jquery_tiki/tiki-calendar_edit_item.js
=====================================
@@ -510,10 +510,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/1427fb9eb14147059db08ce5edff8bf1a42ac52b
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1427fb9eb14147059db08ce5edff8bf1a42ac52b
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