From 8e213a7de5c1effd971dac15d209f59b26564eed Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Jul 2020 22:04:51 +0200 Subject: [PATCH] set id of DOM container, in case server-side returned a different eTemplate --- api/js/etemplate/etemplate2.js | 2 ++ api/js/etemplate/etemplate2.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/js/etemplate/etemplate2.js b/api/js/etemplate/etemplate2.js index 2987248a88..830d010c25 100644 --- a/api/js/etemplate/etemplate2.js +++ b/api/js/etemplate/etemplate2.js @@ -996,6 +996,8 @@ var etemplate2 = /** @class */ (function () { // @ts-ignore if (this && typeof this.load == 'function') { // Called from etemplate + // set id in case serverside returned a different template + this._DOMContainer.id = this.uniqueId = data.DOMNodeID; // @ts-ignore this.load(data.name, data.url, data.data); return true; diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index 6104fccaed..385c05d423 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -1284,6 +1284,8 @@ export class etemplate2 if (this && typeof this.load == 'function') { // Called from etemplate + // set id in case serverside returned a different template + this._DOMContainer.id = this.uniqueId = data.DOMNodeID; // @ts-ignore this.load(data.name, data.url, data.data); return true;