mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 02:18:31 +02:00
Etemplate: Check dirty before closing, ask if there are changes
This commit is contained in:
@ -316,10 +316,10 @@ var et2_customfields_list = /** @class */ (function (_super) {
|
||||
return value;
|
||||
};
|
||||
et2_customfields_list.prototype.isDirty = function () {
|
||||
var dirty = true;
|
||||
var dirty = false;
|
||||
for (var field_name in this.widgets) {
|
||||
if (this.widgets[field_name].isDirty) {
|
||||
dirty = dirty && this.widgets[field_name].isDirty();
|
||||
dirty = dirty || this.widgets[field_name].isDirty();
|
||||
}
|
||||
}
|
||||
return dirty;
|
||||
|
Reference in New Issue
Block a user