Quintiq file version 2.0
#parent: SplitterWnd2/MatrixEditorLaneLeg
Response OnClick (
  structured[LaneLeg] selection
) id:Response_SplitterWnd2_MenuDisable_OnClick
{
  #keys: '[110880.4.1127208469]'
  Body:
  [*
    // Disable lane legs
    //Prompt user for action if action will disable laneleg and remove period task
    if( ApplicationLibMacroPlanner.GetPeriodTaskRemovalWarningDialog( selection, 
                                                                   LaneLeg::GetDisplayDefinitionName() ) )
    {
      LaneLeg::EnableDisableLaneLeg( selection, false );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /SplitterWnd2/Responsedef_SplitterWnd2_MatrixEditorLaneLeg_Menu_OnClick
  Initiator: 'MenuDisable'
  UserRequiresReadWrite: true
}
