From 4fe62a0322bccc0fd9392e45919df2a4214451f2 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 21 Jun 2022 09:03:15 -0600 Subject: [PATCH] Reset dirty after load to avoid unwanted close prompt --- api/js/etemplate/etemplate2.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index 61e5cda18d..d734693e51 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -686,6 +686,11 @@ export class etemplate2 { Promise.all(deferred).then(() => { + // Clear dirty now that it's all loaded + this.widgetContainer.iterateOver((_widget) => + { + _widget.resetDirty(); + }, this, et2_IInput); egw.debug("log", "Finished loading %s, triggering load event", _name); if(typeof window.framework != 'undefined' && typeof window.framework.et2_loadingFinished != 'undefined')