Repository: cloudstack
Updated Branches:
  refs/heads/4.4 bd6f0db31 -> 2926d949f


CLOUDSTACK-6170 (when the "No Thanks" radio button is selected, remove controls 
related to custom size and custom IOPS)

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2926d949
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2926d949
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2926d949

Branch: refs/heads/4.4
Commit: 2926d949f25e14bf324d9ae194c45104a72155f3
Parents: bd6f0db
Author: Mike Tutkowski <[email protected]>
Authored: Sat Mar 22 19:29:39 2014 -0600
Committer: Mike Tutkowski <[email protected]>
Committed: Sat Mar 22 19:29:39 2014 -0600

----------------------------------------------------------------------
 ui/scripts/ui-custom/instanceWizard.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2926d949/ui/scripts/ui-custom/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/instanceWizard.js 
b/ui/scripts/ui-custom/instanceWizard.js
index a2cbab7..c5e0ddb 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];
 

Reply via email to