mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch 'ent-4667-aadcm-peta-la-ejecucion-de-tareas-programadas' into 'develop'
web2image control phantomjs flow See merge request artica/pandorafms!2739
This commit is contained in:
commit
596bd6a566
@ -61,6 +61,7 @@ page.onConsoleMessage = function(msg) {
|
|||||||
page.onError = function(msg) {
|
page.onError = function(msg) {
|
||||||
console.log(msg);
|
console.log(msg);
|
||||||
page.close();
|
page.close();
|
||||||
|
phantom.exit();
|
||||||
};
|
};
|
||||||
|
|
||||||
page.onCallback = function(st) {
|
page.onCallback = function(st) {
|
||||||
@ -74,4 +75,9 @@ page.onCallback = function(st) {
|
|||||||
phantom.exit();
|
phantom.exit();
|
||||||
};
|
};
|
||||||
|
|
||||||
page.open(url, "POST", post_data, function(status) {});
|
page.open(url, "POST", post_data, function(status) {
|
||||||
|
if (status == "fail") {
|
||||||
|
console.out("Failed to generate chart.");
|
||||||
|
phantom.exit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user