mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 15:30:25 +01:00
API: support slot attribute on <template>
This commit is contained in:
parent
18493f1f28
commit
7448377e96
@ -708,6 +708,11 @@ export class etemplate2
|
|||||||
etemplate2._byTemplate[_name].push(this);
|
etemplate2._byTemplate[_name].push(this);
|
||||||
|
|
||||||
// Read the XML structure of the requested template
|
// Read the XML structure of the requested template
|
||||||
|
if(etemplate2.templates[this.name].hasAttribute("slot"))
|
||||||
|
{
|
||||||
|
this.DOMContainer.setAttribute("slot", etemplate2.templates[this.name].getAttribute("slot"));
|
||||||
|
}
|
||||||
|
|
||||||
this._widgetContainer.loadFromXML(etemplate2.templates[this.name]);
|
this._widgetContainer.loadFromXML(etemplate2.templates[this.name]);
|
||||||
console.timeEnd("loadFromXML");
|
console.timeEnd("loadFromXML");
|
||||||
console.time("deferred");
|
console.time("deferred");
|
||||||
@ -1643,7 +1648,7 @@ export class etemplate2
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
egw.debug("error", "Could not find target node %s", data.DOMNodeId);
|
egw.debug("error", "Could not find target node %s", data.DOMNodeID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user