Skip to content

Commit

Permalink
fix(calendar): Rework confirmation box when dismissing calendar event…
Browse files Browse the repository at this point in the history
… edition with background click, only if the event is in edition. Rework of #5585. Closes #5720. Fixes #5732.
  • Loading branch information
WoodySlum committed Apr 6, 2023
1 parent dbd4e20 commit 46215ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Scheduler.services.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Scheduler.services.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions UI/WebServerResources/js/Scheduler/ComponentController.js
Expand Up @@ -278,9 +278,13 @@
comment: data.comment,
attendees: data.attendees
};
edata.organizer.freebusy = {};
for (i = 0; i < edata.attendees.length; i++) {
edata.attendees[i].freebusy = {};
if (edata.organizer && edata.organizer.freebusy) {
edata.organizer.freebusy = {};
}
if (edata.attendees) {
for (i = 0; i < edata.attendees.length; i++) {
edata.attendees[i].freebusy = {};
}
}
json = JSON.stringify(edata);

Expand Down

0 comments on commit 46215ac

Please sign in to comment.