mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
set id of DOM container, in case server-side returned a different eTemplate
This commit is contained in:
parent
382a9576c7
commit
8e213a7de5
@ -996,6 +996,8 @@ var etemplate2 = /** @class */ (function () {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (this && typeof this.load == 'function') {
|
if (this && typeof this.load == 'function') {
|
||||||
// Called from etemplate
|
// Called from etemplate
|
||||||
|
// set id in case serverside returned a different template
|
||||||
|
this._DOMContainer.id = this.uniqueId = data.DOMNodeID;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.load(data.name, data.url, data.data);
|
this.load(data.name, data.url, data.data);
|
||||||
return true;
|
return true;
|
||||||
|
@ -1284,6 +1284,8 @@ export class etemplate2
|
|||||||
if (this && typeof this.load == 'function')
|
if (this && typeof this.load == 'function')
|
||||||
{
|
{
|
||||||
// Called from etemplate
|
// Called from etemplate
|
||||||
|
// set id in case serverside returned a different template
|
||||||
|
this._DOMContainer.id = this.uniqueId = data.DOMNodeID;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.load(data.name, data.url, data.data);
|
this.load(data.name, data.url, data.data);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user