Before I think about your requested issue, your functions need to be local functions. Having names like CreateOption and CreateUnitOption in the global namespace is a very bad idea.
Also, you do not need to specify that childGroups = "tab" twice. You only need that in the parent group.
Last edited by myrroddin : 10-27-18 at 11:16 PM.
Reason: childgroups
|