You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2013/03/01 11:37:21 UTC
[2/4] git commit: refs/heads/master - zone wide primary storage
zone wide primary storage
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/6ef7928a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/6ef7928a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/6ef7928a
Branch: refs/heads/master
Commit: 6ef7928a9c342a99cfec2d471da3005e99a7afac
Parents: d0d6ba9
Author: Pranav Saxena <pr...@citrix.com>
Authored: Fri Feb 22 02:53:26 2013 +0530
Committer: Pranav Saxena <pr...@citrix.com>
Committed: Fri Feb 22 02:53:26 2013 +0530
----------------------------------------------------------------------
ui/scripts/system.js | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/6ef7928a/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 3c52442..375d777 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -8707,6 +8707,37 @@
args.response.success({
data: scope
});
+
+ args.$select.change(function() {
+ var $form = $(this).closest('form');
+ var scope = $(this).val();
+
+ if(scope == 'zone-wide'){
+ $form.find('.form-item[rel=podId]').hide();
+ $form.find('.form-item[rel=clusterId]').hide();
+ $form.find('.form-item[rel=hostId]').hide();
+
+
+ }
+
+ else if(scope == 'cluster'){
+
+ $form.find('.form-item[rel=hostId]').hide();
+ $form.find('.form-item[rel=podId]').css('display', 'inline-block');
+ $form.find('.form-item[rel=clusterId]').css('display', 'inline-block');
+
+
+ }
+
+ else if(scope == 'host'){
+ $form.find('.form-item[rel=podId]').css('display', 'inline-block');
+ $form.find('.form-item[rel=clusterId]').css('display', 'inline-block');
+ $form.find('.form-item[rel=hostId]').css('display', 'inline-block');
+
+ }
+
+ })
+
}
},
zoneid: {
@@ -8867,6 +8898,7 @@
var protocol = $(this).val();
if(protocol == null)
return;
+
if(protocol == "nfs") {
//$("#add_pool_server_container", $dialogAddPool).show();