(js) Avoid saving an empty calendar name

This commit is contained in:
Francis Lachapelle
2019-08-07 16:33:51 -04:00
parent a7b85c3360
commit 361a84e7b5
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -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()