I have the following script:
dhxAccord.attachEvent(“onBeforeActive”,function(id){
profile=‘<?php echo $_SESSION['profile']; ?>’;
if(profile ==‘Utilisateur’)
{
return id!=‘a4’ && id!=‘a5’ && id!=‘a3’ && id!=‘a2’;
}else
{
return ;
}
});
but on the execution, I get the same result in the case of true and false
What can be the problem please ??
thank you for your contribution
Try the next:
dhxAccord.attachEvent(“onBeforeActive”,function(id){
return id!=‘a4’ && id!=‘a5’ && id!=‘a3’ && id!=‘a2’;
});
Thank you!
but it is the same thing as I did, I do not see any difference.
My problem is to know what is the opposite of:
return id!='a4' && id!='a5' && id!='a3' && id!='a2';
i did this
return id='a4' && id='a5' && id='a3' && id='a2';
and this :
return ;
but a1 remains closed while he does not appear in
return id=‘a4’ && id=‘a5’ && id=‘a3’ && id=‘a2’;
What should I put on the else condition so that a1 only remains open ?
if(profile =='Utilisateur')
{
return id!='a4' && id!='a5' && id!='a3' && id!='a2';
}else
{
return ;
}
});
Thank you !!!