From 106ae7a07864373eba7ed1f088417755c1dc2b85 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 18 Sep 2017 14:22:29 -0400 Subject: [PATCH] Improve handling of notifications of a calendar --- NEWS | 1 + .../Appointments/SOGoCalendarComponent.m | 3 +- .../SchedulerUI/UIxCalendarProperties.wox | 166 +++++++++--------- .../Scheduler/sgCalendarListItem.directive.js | 12 +- 4 files changed, 96 insertions(+), 86 deletions(-) diff --git a/NEWS b/NEWS index f403f884f..334842afc 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,7 @@ Bug fixes - [web] fixed parsing of pasted email addresses from Spreadsheet (#4258) - [web] messages list not accessible when changing mailbox in expanded mail view (#4269) - [web] only one postal address of same type is saved (#4091) + - [web] improve handling of email notifications of a calendar properties - [eas] hebrew folders encoding problem using EAS (#4240) 3.2.10 (2017-07-05) diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 06b0928d2..41d9bacce 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -1162,7 +1162,8 @@ inContext: context]; } - if ([[self container] notifyUserOnPersonalModifications]) + if ([[self container] notifyUserOnPersonalModifications] && + [[self container] notifiedUserOnPersonalModifications]) { id o; diff --git a/UI/Templates/SchedulerUI/UIxCalendarProperties.wox b/UI/Templates/SchedulerUI/UIxCalendarProperties.wox index 6b045234a..09f29fcb8 100644 --- a/UI/Templates/SchedulerUI/UIxCalendarProperties.wox +++ b/UI/Templates/SchedulerUI/UIxCalendarProperties.wox @@ -7,89 +7,95 @@ xmlns:label="OGo:label" > +
- -
- - - - - - - -
-
- - -
- - - - - - - - - - - (Microsoft Enterprise ActiveSync) - - - - + +
+ + + + + + +
-
- - - - - - - - - - - - -
- +
- - - - + +
+ + + + + + + + + + + (Microsoft Enterprise ActiveSync) + + + + +
+
+ + + + + + + + + + + + +
+
+ + + + + + + + diff --git a/UI/WebServerResources/js/Scheduler/sgCalendarListItem.directive.js b/UI/WebServerResources/js/Scheduler/sgCalendarListItem.directive.js index 366706586..a463c243f 100644 --- a/UI/WebServerResources/js/Scheduler/sgCalendarListItem.directive.js +++ b/UI/WebServerResources/js/Scheduler/sgCalendarListItem.directive.js @@ -233,11 +233,13 @@ srcCalendar.color = vm.calendar.color; }); - function saveProperties() { - vm.calendar.$save(); - // Refresh list instance - srcCalendar.init(vm.calendar.$omit()); - $mdDialog.hide(); + function saveProperties(form) { + if (form.$valid) { + vm.calendar.$save(); + // Refresh list instance + srcCalendar.init(vm.calendar.$omit()); + $mdDialog.hide(); + } } function close() {