mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 21:48:45 +02:00
Implementation of AllowedValues for fields that depend on other fields
SVN:trunk[148]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user