mirror of https://github.com/apache/cloudstack.git
Support on completion callback
This commit is contained in:
parent
1048a42a24
commit
fd0d08f2cd
|
|
@ -63,7 +63,11 @@ var pollAsyncJobResult = function(args) {
|
|||
setTimeout(function() {
|
||||
$(window).trigger('cloudStack.fullRefresh');
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
if (args._custom.onComplete) {
|
||||
args._custom.onComplete(json);
|
||||
}
|
||||
}
|
||||
else if (result.jobstatus == 2) { // Failed
|
||||
var msg = (result.jobresult.errortext == null)? "": result.jobresult.errortext;
|
||||
|
|
|
|||
Loading…
Reference in New Issue