diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 4cb45d8e2dc..09df9ba26c0 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -37,7 +37,9 @@ /** * Generic error handling */ + $.ajaxSetup({ + url: clientApiUrl, async: true, dataType: 'json', cache: false, @@ -161,8 +163,8 @@ } $.ajax({ - //type: "POST", - url: createURL("login") + array1.join(""), + type: "POST", + data: "command=login" + array1.join("") + "&response=json", dataType: "json", async: false, success: function(json) {