Test
This commit is contained in:
parent
88894499be
commit
6a67f6ba9d
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
|
||||||
var getMachines=function(callback){
|
var getMachines=function(callback){
|
||||||
|
|
||||||
var result=$http.post('../server/index.php',
|
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
|
// Wait and handle the response
|
||||||
result.then(function (response){
|
result.then(function (response){
|
||||||
|
|
|
@ -117,9 +117,9 @@ mainApp.factory('Identity',[ '$http', '$cookies', function($http, $cookies){
|
||||||
|
|
||||||
// Wait and handle the response
|
// Wait and handle the response
|
||||||
result.then(function (response){
|
result.then(function (response){
|
||||||
callback(parseLoginAnswer(response), false);
|
callback(parseLoginAnswer(response, false));
|
||||||
},function(response){
|
},function(response){
|
||||||
callback(parseLoginAnswer(response), true)
|
callback(parseLoginAnswer(response, true));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue