From ec6a3881e3b62e4a4676c048568b68d96669262a Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 22 Apr 2020 14:52:50 -0600 Subject: [PATCH] Still need to clear before loading or dialogs get doubled --- api/js/etemplate/etemplate2.js | 1 + api/js/etemplate/etemplate2.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/api/js/etemplate/etemplate2.js b/api/js/etemplate/etemplate2.js index 2607856fd2..da0eac1674 100644 --- a/api/js/etemplate/etemplate2.js +++ b/api/js/etemplate/etemplate2.js @@ -372,6 +372,7 @@ var etemplate2 = /** @class */ (function () { if (!jQuery.isArray(_data.langRequire)) _data.langRequire = []; egw(currentapp, window).langRequire(window, _data.langRequire, function () { + this.clear(); // Initialize application js var app_callback = null; // Only initialize once diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index aab3f5deb4..82c67e4cac 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -472,6 +472,8 @@ export class etemplate2 if (!jQuery.isArray(_data.langRequire)) _data.langRequire = []; egw(currentapp, window).langRequire(window, _data.langRequire, function () { + this.clear(); + // Initialize application js let app_callback = null; // Only initialize once