Implementation of AllowedValues for fields that depend on other fields

SVN:trunk[148]
This commit is contained in:
Denis Flaven
2009-09-11 20:35:16 +00:00
parent cc9420f009
commit e2d60e7c8f
7 changed files with 69 additions and 22 deletions

View File

@@ -57,7 +57,16 @@ function ReloadObjectFromServer(sJSON)
function GoToStep(iCurrentStep, iNextStep)
{
var oCurrentStep = document.getElementById('wizStep'+iCurrentStep);
if (CheckMandatoryFields('wizStep'+iCurrentStep))
if (iNextStep > iCurrentStep)
{
// Check the values when moving forward
if (CheckMandatoryFields('wizStep'+iCurrentStep))
{
oCurrentStep.style.display = 'none';
ActivateStep(iNextStep);
}
}
else
{
oCurrentStep.style.display = 'none';
ActivateStep(iNextStep);