Reset dirty after load to avoid unwanted close prompt

This commit is contained in:
nathan 2022-06-21 09:03:15 -06:00
parent 61f22d67f3
commit 4fe62a0322

View File

@ -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')