From e1135560239a16798db8db6854221a551053dd65 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 26 Nov 2012 15:29:52 -0800 Subject: [PATCH] CLOUDSTACK-543: cloudstack UI - create network offering dialog - disable Redundant router capability checkbox, Conserve Mode checkbox (still visible, but can't be selected) when Guest Type is selected as Shared. --- ui/scripts/configuration.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index c82b85f3a52..a8ce108cbd2 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -1194,19 +1194,19 @@ return false; //break each loop } } - }); - if(havingVpcVirtualRouterForAtLeastOneService == true) { + }); + if(havingVpcVirtualRouterForAtLeastOneService == true || $guestTypeField.val() == 'Shared') { $conservemode.find("input[type=checkbox]").attr("disabled", "disabled"); - $conservemode.find("input[type=checkbox]").attr('checked', false); - + $conservemode.find("input[type=checkbox]").attr('checked', false); + $serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").attr("disabled", "disabled"); $serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").attr('checked', false); } - else { - $conservemode.find("input[type=checkbox]").removeAttr("disabled"); - $serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").removeAttr("disabled"); - } - + else { + $serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").removeAttr("disabled"); + $conservemode.find("input[type=checkbox]").removeAttr("disabled"); + } + $(':ui-dialog').dialog('option', 'position', 'center'); //CS-16612 show all services regardless of guestIpType(Shared/Isolated)