cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject [16/39] git commit: updated refs/heads/bvt to f428608
Date Wed, 27 Mar 2013 13:32:26 GMT
CLOUDSTACK-1724:ZWPS: provision to add scope of the primary storage in the zone creation wizard


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

Branch: refs/heads/bvt
Commit: 933f1213c1a2b297d45f971045eb57412d8aa35b
Parents: 582f8a0
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Tue Mar 26 21:08:14 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Tue Mar 26 21:08:14 2013 +0530

----------------------------------------------------------------------
 ui/scripts/zoneWizard.js |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/933f1213/ui/scripts/zoneWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/zoneWizard.js b/ui/scripts/zoneWizard.js
index 5108c5c..01dcaaf 100755
--- a/ui/scripts/zoneWizard.js
+++ b/ui/scripts/zoneWizard.js
@@ -1177,6 +1177,24 @@
             validation: { required: true }  
 					},
 
+           scope: {
+                    label: 'label.scope',
+                    select: function(args) {
+
+            var scope = [
+                        { id: 'zone', description: _l('label.zone.wide') },
+                        { id: 'cluster', description: _l('label.cluster') },
+                        { id: 'host', description: _l('label.host') }
+                      ];
+
+                      args.response.success({
+                        data: scope
+                      });
+
+                }
+
+              },
+
           protocol: {
             label: 'label.protocol',
             validation: { required: true }, 
@@ -3244,6 +3262,7 @@
           array1.push("&podId=" + args.data.returnedPod.id);
           array1.push("&clusterid=" + args.data.returnedCluster.id);
           array1.push("&name=" + todb(args.data.primaryStorage.name));
+          array1.push("&scope=" +todb(args.data.primaryStorage.scope));
 
 					var server = args.data.primaryStorage.server;
           var url = null;


Mime
View raw message