conga/luci/site/luci/Extensions cluster_adapte ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-03-12 05:46:07
Modified files:
luci/site/luci/Extensions: cluster_adapters.py
Log message:
Fix the navigation portal so the correct item is highlighted when adding and editing virtual services.
luci/site/luci/Extensions/cluster_adapters.py +4 -4
@@ -2684,11 +2684,11 @@ sv['cfg_type'] = "services" sv['absolute_url'] = url + "?pagetype=" + SERVICES + "&clustername=" + cluname sv['Description'] = "Service configuration for this cluster" - if pagetype == SERVICES or pagetype == SERVICE_CONFIG or pagetype == SERVICE_ADD or pagetype == SERVICE: + if pagetype == SERVICES or pagetype == SERVICE_CONFIG or pagetype == SERVICE_ADD or pagetype == SERVICE or pagetype == SERVICE_LIST or pagetype == VM_ADD or pagetype == VM_CONFIG: sv['show_children'] = True else: sv['show_children'] = False - if pagetype == SERVICES: + if pagetype == SERVICES or pagetype == SERVICE_LIST: sv['currentItem'] = True else: sv['currentItem'] = False
@@ -2719,11 +2719,11 @@ svcfg['cfg_type'] = "servicecfg" svcfg['absolute_url'] = url + "?pagetype=" + SERVICE_CONFIG + "&clustername=" + cluname svcfg['Description'] = "Configure a Service for this cluster" - if pagetype == SERVICE_CONFIG or pagetype == SERVICE: + if pagetype == SERVICE_CONFIG or pagetype == SERVICE or pagetype == VM_CONFIG: svcfg['show_children'] = True else: svcfg['show_children'] = False - if pagetype == SERVICE_CONFIG: + if pagetype == SERVICE_CONFIG or pagetype == VM_CONFIG: svcfg['currentItem'] = True else: svcfg['currentItem'] = False