summaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-02-29 08:32:48 +0100
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-02-29 08:32:48 +0100
commit6a67f6ba9dce19b046a5fc86e7437fbaa873c1e8 (patch)
treece8f3f4d3ed2c029a054293a006f27f080279e06 /client/js
parent88894499be544d50c9217b950a1ac801489c2442 (diff)
Test
Diffstat (limited to 'client/js')
-rw-r--r--client/js/services/Compute.js2
-rw-r--r--client/js/services/Identity.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/client/js/services/Compute.js b/client/js/services/Compute.js
index 59f6291..9f404c4 100644
--- a/client/js/services/Compute.js
+++ b/client/js/services/Compute.js
@@ -17,7 +17,7 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
var getMachines=function(callback){
var result=$http.post('../server/index.php',
- $.param({"token" : Identity.getToken(), "task" : "compute", "action":"listServers"}));
+ $.param({"token" : Identity.getToken(), "task" : "compute", "action":"getServer", serverId:"69d5bcc4-2fab-4634-b0d2-f455fee5b7bd"}));
// Wait and handle the response
result.then(function (response){
diff --git a/client/js/services/Identity.js b/client/js/services/Identity.js
index 7604230..a13c457 100644
--- a/client/js/services/Identity.js
+++ b/client/js/services/Identity.js
@@ -117,9 +117,9 @@ mainApp.factory('Identity',[ '$http', '$cookies', function($http, $cookies){
// Wait and handle the response
result.then(function (response){
- callback(parseLoginAnswer(response), false);
+ callback(parseLoginAnswer(response, false));
},function(response){
- callback(parseLoginAnswer(response), true)
+ callback(parseLoginAnswer(response, true));
});
};