fix(calendar): Rework confirmation box when dismissing calendar event edition with background click, only if the event is in edition. Rework of #5585. Closes #5720.

This commit is contained in:
smizrahi
2023-04-05 17:49:01 +02:00
parent fd7bdd8393
commit 4fc61a28d5
3 changed files with 10 additions and 5 deletions
@@ -262,8 +262,8 @@
};
this.hash = function (data) {
var hash = 0, i, chr, json;
json = JSON.stringify({
var hash = 0, i, chr, edata, json;
edata = {
repeat: data.repeat,
pid: data.pid,
destinationCalendar: data.destinationCalendar,
@@ -277,7 +277,12 @@
isAllDay: data.isAllDay,
comment: data.comment,
attendees: data.attendees
});
};
edata.organizer.freebusy = {};
for (i = 0; i < edata.attendees.length; i++) {
edata.attendees[i].freebusy = {};
}
json = JSON.stringify(edata);
if (json.length === 0) return hash;
for (i = 0; i < json.length; i++) {