Repository: cloudstack
Updated Branches:
  refs/heads/master 426e3e870 -> 578e500bc


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/578e500b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/578e500b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/578e500b

Branch: refs/heads/master
Commit: 578e500bc24a8874e7914e0574de16e9ab2d8045
Parents: 426e3e8
Author: Mike Tutkowski <[email protected]>
Authored: Sat Mar 22 19:29:39 2014 -0600
Committer: Mike Tutkowski <[email protected]>
Committed: Sat Mar 22 19:41:34 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/578e500b/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