cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [23/50] [abbrv] git commit: updated refs/heads/rbac to 2ef4d52
Date Fri, 01 Nov 2013 00:21:34 GMT
CLOUDSTACK-4758: UI > VM wizard > step 2 > show Root Disk Size field when listing
is templates, hide Root Disk Size field when listing is ISOs.


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

Branch: refs/heads/rbac
Commit: 1d1f5850795b5bd9ffc316576fed9197d89e0d1d
Parents: 5bcd828
Author: Jessica Wang <jessicawang@apache.org>
Authored: Tue Oct 29 15:19:09 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Tue Oct 29 15:22:10 2013 -0700

----------------------------------------------------------------------
 ui/scripts/instanceWizard.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1d1f5850/ui/scripts/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js
index 484b18c..d2cde2f 100644
--- a/ui/scripts/instanceWizard.js
+++ b/ui/scripts/instanceWizard.js
@@ -238,8 +238,12 @@
                         templates: templatesObj,
                         hypervisors: hypervisorObjs
                     },
-                    customHidden: function(args) {
-                        return true;
+                    customHidden: function(args) {                        
+                        if (selectedTemplate == 'select-template') {
+                            return false; //show Root Disk Size field
+                        } else { //selectedTemplate == 'select-iso'
+                        	return true;  //hide Root Disk Size field
+                        }                       
                     }
                 });
             },


Mime
View raw message