mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
If tab is hidden, set widgets to readonly to avoid the need for client side validation
This commit is contained in:
parent
7b810b57f3
commit
bf1bd63110
@ -280,6 +280,11 @@ var et2_tabbox = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
|
|||||||
if(!tabData || tabData.loaded) return;
|
if(!tabData || tabData.loaded) return;
|
||||||
if(tabData.XMLNode != null)
|
if(tabData.XMLNode != null)
|
||||||
{
|
{
|
||||||
|
if(tabData.hidden)
|
||||||
|
{
|
||||||
|
// Set hidden tab to readonly, so widgets aren't active
|
||||||
|
tabData.XMLNode.setAttribute('readonly', true);
|
||||||
|
}
|
||||||
tabData.widget = this.createElementFromNode(tabData.XMLNode,tabData.XMLNode.nodeName.toLowerCase());
|
tabData.widget = this.createElementFromNode(tabData.XMLNode,tabData.XMLNode.nodeName.toLowerCase());
|
||||||
|
|
||||||
// Release the XML node
|
// Release the XML node
|
||||||
|
Loading…
Reference in New Issue
Block a user