(fix) improved the start/end delta handling and fixed the attendees viewer

This commit is contained in:
Ludovic Marcotte
2015-10-07 14:42:37 -04:00
parent 74eb0846e8
commit e6be7e00ba
2 changed files with 17 additions and 15 deletions

View File

@@ -401,6 +401,8 @@
Component.$Preferences.defaults['SOGoCalendar' + type + 'DefaultClassification'].toLowerCase();
});
this.delta = 60;
if (this.startDate)
this.start = new Date(this.startDate.substring(0,10) + ' ' + this.startDate.substring(11,16));
else if (this.type == 'appointment') {
@@ -413,7 +415,7 @@
else if (this.type == 'appointment') {
this.end = new Date();
this.end.setMinutes(Math.round(this.end.getMinutes()/15)*15);
this.end.addHours(1);
this.end.addMinutes(this.delta);
}
if (this.dueDate)