mirror of
https://github.com/ansible/awx.git
synced 2026-01-26 16:11:30 -03:30
21 lines
570 B
JavaScript
21 lines
570 B
JavaScript
exports.command = function(callback) {
|
|
let self = this;
|
|
this.timeoutsAsyncScript(this.globals.asyncHookTimeout, function() {
|
|
this.executeAsync(function(done) {
|
|
if(angular && angular.getTestability) {
|
|
angular.getTestability(document.body).whenStable(done);
|
|
}
|
|
else {
|
|
done();
|
|
}
|
|
},
|
|
[],
|
|
function(result) {
|
|
if(typeof(callback) === "function") {
|
|
callback.call(self, result);
|
|
}
|
|
});
|
|
});
|
|
return this;
|
|
};
|