Etemplate: Check dirty before closing, ask if there are changes

This commit is contained in:
nathangray
2020-06-19 13:27:41 -06:00
parent 73515cd412
commit 52714f0a63
14 changed files with 149 additions and 23 deletions

View File

@ -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;