cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [11/50] git commit: updated refs/heads/sf-plugins to 157efc3
Date Sat, 19 Sep 2015 01:31:17 GMT
Add VLAN combo box to Add Shared Volume window


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

Branch: refs/heads/sf-plugins
Commit: 7709243841662dafac988060932baf6cba62a333
Parents: b7ef791
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Tue Jul 7 13:57:31 2015 -0600
Committer: Mike Tutkowski <mike.tutkowski@solidfire.com>
Committed: Fri Sep 18 19:28:18 2015 -0600

----------------------------------------------------------------------
 ui/plugins/sfSharedVolume/sfSharedVolume.js | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/77092438/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index cce02db..8896526 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -77,7 +77,6 @@
                 },
                 diskSize: {
 				  label: 'label.disk.size.gb',
-			      docID: 'Size of the volume in GB',
                   validation: {
                     required: true,
                     number: true
@@ -103,6 +102,27 @@
                     required: true,
                     number: true
                   }
+                },
+                vlan: {
+                  label: 'VLAN',
+                  validation: {
+                    required: true
+                  },
+                  select: function(args) {
+                    $.ajax({
+                      url: createURL("listSolidFireVirtualNetworks"),
+                      dataType: "json",
+                      async: true,
+                      success: function(json) {
+                        var virtualNetworkObjs = json.listvirtualnetworksresponse.virtualnetwork;
+
+                        args.response.success({
+                          descriptionField: 'name',
+                          data: virtualNetworkObjs
+                        });
+                      }
+                    });
+                  }
                 }
               }
             },


Mime
View raw message