If tab is hidden, set widgets to readonly to avoid the need for client side validation

This commit is contained in:
nathangray 2017-04-19 10:43:42 -06:00
parent 7b810b57f3
commit bf1bd63110

View File

@ -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