mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-03 09:29:43 +00:00
(js) Optimize display of event editor
This commit is contained in:
@@ -388,14 +388,16 @@
|
||||
};
|
||||
|
||||
this.changeAlarmRelation = function (form) {
|
||||
if (this.component.type == 'task' && this.component.$hasAlarm &&
|
||||
(this.component.start || this.component.due) &&
|
||||
((!this.component.start && this.component.alarm.relation == 'START') ||
|
||||
(!this.component.due && this.component.alarm.relation == 'END'))) {
|
||||
form.alarmRelation.$setValidity('alarm', false);
|
||||
}
|
||||
else {
|
||||
form.alarmRelation.$setValidity('alarm', true);
|
||||
if (form.alarmRelation) {
|
||||
if (this.component.type == 'task' && this.component.$hasAlarm &&
|
||||
(this.component.start || this.component.due) &&
|
||||
((!this.component.start && this.component.alarm.relation == 'START') ||
|
||||
(!this.component.due && this.component.alarm.relation == 'END'))) {
|
||||
form.alarmRelation.$setValidity('alarm', false);
|
||||
}
|
||||
else {
|
||||
form.alarmRelation.$setValidity('alarm', true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user