You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/10/29 23:22:21 UTC
git commit: updated refs/heads/master to 1d1f585
Updated Branches:
refs/heads/master 5bcd8280f -> 1d1f58507
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/master
Commit: 1d1f5850795b5bd9ffc316576fed9197d89e0d1d
Parents: 5bcd828
Author: Jessica Wang <je...@apache.org>
Authored: Tue Oct 29 15:19:09 2013 -0700
Committer: Jessica Wang <je...@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
+ }
}
});
},