Updated Branches:
  refs/heads/vpc a96c9013d -> 038425929

CS-15939: cloudstack 3.0 UI - VPC - create VPN connection - add error handling.


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

Branch: refs/heads/vpc
Commit: 0384259298affed2a540d0261806a81bc0c9c91a
Parents: a96c901
Author: Jessica Wang <[email protected]>
Authored: Fri Aug 10 10:20:44 2012 -0700
Committer: Jessica Wang <[email protected]>
Committed: Fri Aug 10 10:29:03 2012 -0700

----------------------------------------------------------------------
 ui/scripts/vpc.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/03842592/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index d34025a..a9f01ab 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -1006,7 +1006,7 @@
                       s2scustomergatewayid: args.data.vpncustomergatewayid
                     },
                     success: function(json) {                                  
                                          
-                      var jid = json.createvpnconnectionresponse.jobid;
+                      var jid = json.createvpnconnectionresponse.jobid;        
                                                                                
                       args.response.success(
                         {_custom:
                           {
@@ -1017,7 +1017,10 @@
                           }
                         }
                       );
-                    }
+                    },                                                         
                
+                                                                               
error: function(xmlHttpResponse) {
+                                                                               
        args.response.error(parseXMLHttpResponse(xmlHttpResponse));
+                                                                               
}
                   });
                 },
                 notification: {

Reply via email to