mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°653: Dependant fields on transitions was not using transition flags.
SVN:trunk[4769]
This commit is contained in:
@@ -34,7 +34,7 @@ if (!Array.prototype.indexOf) // Emulation of the indexOf function for IE and ol
|
||||
};
|
||||
}
|
||||
|
||||
function WizardHelper(sClass, sFormPrefix, sState)
|
||||
function WizardHelper(sClass, sFormPrefix, sState, sInitialState, sStimulus)
|
||||
{
|
||||
this.m_oData = { 'm_sClass' : '',
|
||||
'm_oFieldsMap': {},
|
||||
@@ -48,7 +48,17 @@ function WizardHelper(sClass, sFormPrefix, sState)
|
||||
'm_sState': sState
|
||||
};
|
||||
this.m_oData.m_sClass = sClass;
|
||||
|
||||
|
||||
// Setting optional transition data
|
||||
if(sInitialState !== undefined)
|
||||
{
|
||||
this.m_oData.m_sInitialState = sInitialState;
|
||||
}
|
||||
if(sStimulus !== undefined)
|
||||
{
|
||||
this.m_oData.m_sStimulus = sStimulus;
|
||||
}
|
||||
|
||||
// Methods
|
||||
this.SetFieldsMap = function (oFieldsMap)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user