incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: CS-16573: cloudstack UI - create user - encode data passed to API call.
Date Fri, 02 Nov 2012 18:20:11 GMT
Updated Branches:
  refs/heads/master 1f458983a -> 83200abc1


CS-16573: cloudstack UI - create user - encode data passed to API call.


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

Branch: refs/heads/master
Commit: 83200abc1861aa4ba4b8d23d370f641c2b074f67
Parents: 1f45898
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Tue Oct 30 15:13:44 2012 -0700
Committer: Jessica Wang <jessica.wang@citrix.com>
Committed: Fri Nov 2 11:19:57 2012 -0700

----------------------------------------------------------------------
 ui/scripts/instanceWizard.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/83200abc/ui/scripts/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js
index b35369d..1d37f78 100644
--- a/ui/scripts/instanceWizard.js
+++ b/ui/scripts/instanceWizard.js
@@ -467,9 +467,17 @@
         //create new network starts here
         if(args.data["new-network"] == "create-new-network") {
           var isCreateNetworkSuccessful = true;
+					
+					var data = {
+					  networkOfferingId: args.data["new-network-networkofferingid"],
+						name: args.data["new-network-name"],
+						displayText: args.data["new-network-name"],
+						zoneId: selectedZoneObj.id
+					};
+					
           $.ajax({
-            url: createURL("createNetwork&networkOfferingId="+args.data["new-network-networkofferingid"]+"&name="+todb(args.data["new-network-name"])+"&displayText="+todb(args.data["new-network-name"])+"&zoneId="+selectedZoneObj.id),
-            dataType: "json",
+            url: createURL('createNetwork'),
+            data: data,
             async: false,
             success: function(json) {
               newNetwork = json.createnetworkresponse.network;


Mime
View raw message