From f456cda8cc337fc7b13dc53c9a0a274cd1e851a7 Mon Sep 17 00:00:00 2001 From: Gabor Apati-Nagy Date: Tue, 16 Sep 2014 18:08:36 +0100 Subject: [PATCH] CLOUDSTACK-7561: UI: After creating a new account, the "Add Account" dialog remains open -Removed unused code that was causing javascript exception Signed-off-by: Brian Federle (cherry picked from commit 30611be15abd4cd8843c10ddb2d3b131aea2cda3) --- ui/scripts/accountsWizard.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/ui/scripts/accountsWizard.js b/ui/scripts/accountsWizard.js index f0221932706..6b0dd19682f 100644 --- a/ui/scripts/accountsWizard.js +++ b/ui/scripts/accountsWizard.js @@ -222,12 +222,6 @@ dataType: "json", type: "POST", async: false, - success: function(json) { - var count = json.ldapuserresponse.count; - args.response.success({ - data: count - }); - }, error: function(XMLHttpResponse) { args.response.error(parseXMLHttpResponse(XMLHttpResponse)); } @@ -238,12 +232,6 @@ dataType: "json", type: "POST", async: false, - success: function(json) { - var item = json.createaccountresponse.account; - args.response.success({ - data: item - }); - }, error: function(XMLHttpResponse) { args.response.error(parseXMLHttpResponse(XMLHttpResponse)); } @@ -255,12 +243,6 @@ dataType: "json", type: "POST", async: false, - success: function(json) { - var item = json.createaccountresponse.account; - args.response.success({ - data: item - }); - }, error: function(XMLHttpResponse) { args.response.error(parseXMLHttpResponse(XMLHttpResponse)); } @@ -268,4 +250,4 @@ } } }; -}(cloudStack, jQuery)); \ No newline at end of file +}(cloudStack, jQuery));