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