Still need to clear before loading or dialogs get doubled

This commit is contained in:
nathangray 2020-04-22 14:52:50 -06:00
parent 4d4eb5e654
commit ec6a3881e3
2 changed files with 3 additions and 0 deletions

View File

@ -372,6 +372,7 @@ var etemplate2 = /** @class */ (function () {
if (!jQuery.isArray(_data.langRequire)) if (!jQuery.isArray(_data.langRequire))
_data.langRequire = []; _data.langRequire = [];
egw(currentapp, window).langRequire(window, _data.langRequire, function () { egw(currentapp, window).langRequire(window, _data.langRequire, function () {
this.clear();
// Initialize application js // Initialize application js
var app_callback = null; var app_callback = null;
// Only initialize once // Only initialize once

View File

@ -472,6 +472,8 @@ export class etemplate2
if (!jQuery.isArray(_data.langRequire)) _data.langRequire = []; if (!jQuery.isArray(_data.langRequire)) _data.langRequire = [];
egw(currentapp, window).langRequire(window, _data.langRequire, function () egw(currentapp, window).langRequire(window, _data.langRequire, function ()
{ {
this.clear();
// Initialize application js // Initialize application js
let app_callback = null; let app_callback = null;
// Only initialize once // Only initialize once