From bd6b20bae8ea9ba3ebc0e3c4751e3d42d09274ea Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 20 Jul 2020 14:34:10 -0600 Subject: [PATCH] Fix home cannot find its portlet templates This reverts commit ff0cdf814305ef3b85ced801feb0e4c5c275ce33. --- api/js/etemplate/etemplate2.js | 2 -- api/js/etemplate/etemplate2.ts | 3 --- 2 files changed, 5 deletions(-) diff --git a/api/js/etemplate/etemplate2.js b/api/js/etemplate/etemplate2.js index 55c2660121..2987248a88 100644 --- a/api/js/etemplate/etemplate2.js +++ b/api/js/etemplate/etemplate2.js @@ -417,8 +417,6 @@ var etemplate2 = /** @class */ (function () { this._widgetContainer.setApiInstance(egw(currentapp, egw.elemWindow(this._DOMContainer))); this._widgetContainer.setInstanceManager(this); this._widgetContainer.setParentDOMNode(this._DOMContainer); - // set id of DOMContainer, in case it changed because server-side send a different template - this._DOMContainer.id = this.uniqueId = _name.replace(/\./g, '-'); // store the id to submit it back to server if (_data) { this._etemplate_exec_id = _data.etemplate_exec_id; diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index e2c7b7452b..6104fccaed 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -533,9 +533,6 @@ export class etemplate2 this._widgetContainer.setInstanceManager(this); this._widgetContainer.setParentDOMNode(this._DOMContainer); - // set id of DOMContainer, in case it changed because server-side send a different template - this._DOMContainer.id = this.uniqueId = _name.replace(/\./g, '-'); - // store the id to submit it back to server if (_data) {