diff --git a/awx/ui/static/js/helpers/EventViewer.js b/awx/ui/static/js/helpers/EventViewer.js
index 6afa3804d6..f5187bdb3e 100644
--- a/awx/ui/static/js/helpers/EventViewer.js
+++ b/awx/ui/static/js/helpers/EventViewer.js
@@ -197,18 +197,18 @@ angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFo
function parseObject(obj) {
// parse nested JSON objects. a mini version of parseJSON without references to the event form object.
- var key, html = '';
+ var i, key, html = '';
for (key in obj) {
if (typeof obj[key] === "boolean" || typeof obj[key] === "number" || typeof obj[key] === "string") {
html += "
| " + key + ": | " + obj[key] + " |
";
}
else if (typeof obj[key] === "object" && Array.isArray(obj[key])) {
- html += "| " + key + ": | ";
- obj[key].forEach(function(row) {
- html += "[" + row + "],";
- });
+ html += " |
| " + key + ": | [";
+ for (i = 0; i < obj[key].length; i++) {
+ html += obj[key][i] + ",";
+ }
html = html.replace(/,$/,'');
- html += " |
\n";
+ html += "]\n";
}
else if (typeof obj[key] === "object") {
html += "| " + key + ": | \n\n" + parseObject(obj[key]) + "\n \n |
\n";
@@ -229,7 +229,7 @@ angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFo
}
}
keys.forEach(function(key) {
- var label;
+ var i, label;
//if (EventsViewerForm.fields[key] && EventsViewerForm.fields[key].section === section) {
label = EventsViewerForm.fields[key].label;
if (Empty(obj[key])) {
@@ -265,12 +265,12 @@ angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFo
}
else if (typeof obj[key] === "object" && Array.isArray(obj[key])) {
found = true;
- html += "| " + label + ": | ";
- obj[key].forEach(function(row) {
- html += "[" + row + "],";
- });
+ html += " |
| " + label + ": | [";
+ for (i = 0; i < obj[key].length; i++) {
+ html += obj[key][i] + ",";
+ }
html = html.replace(/,$/,'');
- html += " |
\n";
+ html += "]\n";
}
else if (typeof obj[key] === "object") {
found = true;