Skip to content

Commit

Permalink
fix error handling in back office service calls
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsom committed Feb 28, 2014
1 parent 605a9b2 commit bcef01a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BackOffice/js/services.js
Expand Up @@ -35,17 +35,17 @@ amfphp.services.AmfphpMonitorService = {};
* */
amfphp.services.AmfphpMonitorService.getData = function(onSuccess, onError, flush){
var callData = JSON.stringify({"serviceName":"AmfphpMonitorService", "methodName":"getData","parameters":[flush]});
$.post(amfphp.entryPointUrl, callData, onSuccess)
.error(onError);
$.post(amfphp.entryPointUrl, callData, onSuccess, "json")
.fail(onError);

}
/**
* flush monitor log
* */
amfphp.services.AmfphpMonitorService.flush = function(onSuccess, onError){
var callData = JSON.stringify({"serviceName":"AmfphpMonitorService", "methodName":"flush","parameters":[]});
$.post(amfphp.entryPointUrl, callData, onSuccess)
.error(onError);
$.post(amfphp.entryPointUrl, callData, onSuccess, "json")
.fail(onError);

}
/**
Expand All @@ -64,7 +64,7 @@ amfphp.services.AmfphpDiscoveryService = {};
* */
amfphp.services.AmfphpDiscoveryService.discover = function(onSuccess, onError){
var callData = JSON.stringify({"serviceName":"AmfphpDiscoveryService", "methodName":"discover","parameters":[]});
$.post(amfphp.entryPointUrl, callData, onSuccess)
.error(onError);
$.post(amfphp.entryPointUrl, callData, onSuccess, "json")
.fail(onError);

}

0 comments on commit bcef01a

Please sign in to comment.