mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
(js) Avoid saving an empty calendar name
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
4.0.9 (2019-XX-XX)
|
||||
------------------
|
||||
|
||||
Enhancements
|
||||
- [web] avoid saving an empty calendar name
|
||||
|
||||
Bug fixes
|
||||
- [web] properly handle Windows-1256 charaset (#4781)
|
||||
|
||||
|
||||
@@ -106,6 +106,9 @@
|
||||
this.editMode = false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.revertEditing(folder);
|
||||
}
|
||||
};
|
||||
|
||||
this.confirmDelete = function () {
|
||||
|
||||
@@ -107,6 +107,9 @@
|
||||
if (this.inputElement.disabled)
|
||||
return;
|
||||
|
||||
if (this.inputElement.value.length === 0)
|
||||
this.revertEditing();
|
||||
|
||||
this.calendar.name = this.inputElement.value;
|
||||
this.inputElement.disabled = true;
|
||||
this.calendar.$rename()
|
||||
|
||||
Reference in New Issue
Block a user