mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 05:17:36 -02:30
Job stdout scrolling
Started adding bits to detect when user scrolls up. When that happens stop showing live events.
This commit is contained in:
@@ -1134,42 +1134,6 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
return html;
|
||||
}
|
||||
|
||||
/*function parseJSON(obj) {
|
||||
var html="", key;
|
||||
html += "<ul class=\"object-list\">\n";
|
||||
for(key in obj) {
|
||||
if (typeof obj[key] === "boolean" || typeof obj[key] === "number" || typeof obj[key] === "string") {
|
||||
html += "<li><div class=\"key\">" + key + ":</div><div class=\"value\">" + obj[key] + "</div></li>\n";
|
||||
}
|
||||
if (obj[key] === null || obj[key] === undefined) {
|
||||
html += "<li><div class=\"key\">" + key + ":</div><div class=\"value\">null</div></li>\n";
|
||||
}
|
||||
if (typeof obj[key] === "object") {
|
||||
html += "<li><div class=\"key\">" + key + ":</div>" + parseJSON(obj[key]) + "</li>\n";
|
||||
}
|
||||
}
|
||||
html += "</ul>\n";
|
||||
return html;
|
||||
}*/
|
||||
|
||||
/*function parseJSON(obj) {
|
||||
var html="", key;
|
||||
for(key in obj) {
|
||||
html += "<div class=\"row object-list\">\n";
|
||||
if (typeof obj[key] === "boolean" || typeof obj[key] === "number" || typeof obj[key] === "string") {
|
||||
html += "<div class=\"col-lg-4 col-md-4 key\">" + key + ":</div><div class=\"col-lg-8 col-md-8 value\">" + obj[key] + "</div>\n";
|
||||
}
|
||||
if (obj[key] === null || obj[key] === undefined) {
|
||||
html += "<div class=\"col-lg-4 col-md-4 key\">" + key + ":</div><div class=\"col-lg-8 col-md-8 value\">null</div>\n";
|
||||
}
|
||||
if (typeof obj[key] === "object") {
|
||||
html += "<div class=\"col-lg-4 col-md-4 key\">" + key + ":</div><div class=\"col-lg-8 col-md-8\">" + parseJSON(obj[key]) + "</div>\n";
|
||||
}
|
||||
html += "</div>\n";
|
||||
}
|
||||
return html;
|
||||
}*/
|
||||
|
||||
if (my_scope.removeDataReady) {
|
||||
my_scope.removeDataReady();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user