From 2926d949f25e14bf324d9ae194c45104a72155f3 Mon Sep 17 00:00:00 2001 From: Mike Tutkowski Date: Sat, 22 Mar 2014 19:29:39 -0600 Subject: [PATCH] CLOUDSTACK-6170 (when the "No Thanks" radio button is selected, remove controls related to custom size and custom IOPS) --- ui/scripts/ui-custom/instanceWizard.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index a2cbab72ebe..c5e0ddb2364 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -517,7 +517,16 @@ return elem.id == val; })[0]; - if (!item) return true; + if (!item) { + // handle removal of custom size controls + $step.find('.section.custom-size').hide(); + $step.removeClass('custom-disk-size'); + + // handle removal of custom IOPS controls + $step.removeClass('custom-iops-do'); + + return true; + } var custom = item[args.customFlag];