mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Do not change XMLNode, that changes the cached template. Clone it, then change it to avoid weird side effects.
This commit is contained in:
parent
a3174d58ef
commit
abb5ffd508
@ -283,6 +283,8 @@ var et2_tabbox = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
|
||||
if(tabData.hidden)
|
||||
{
|
||||
// Set hidden tab to readonly, so widgets aren't active
|
||||
// Do not modify the XMLNode, or the change will be cached for all
|
||||
tabData.XMLNode = tabData.XMLNode.cloneNode();
|
||||
tabData.XMLNode.setAttribute('readonly', true);
|
||||
}
|
||||
tabData.widget = this.createElementFromNode(tabData.XMLNode,tabData.XMLNode.nodeName.toLowerCase());
|
||||
|
Loading…
Reference in New Issue
Block a user