mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 15:57:12 +00:00
(js) Optimize display of event editor
This commit is contained in:
1 parent
6d2094bf83
commit
01bda0783c
2 files changed
+13
-11
No files matched your search
@@ -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