diff --git a/awx/ui/static/js/forms/EventsViewer.js b/awx/ui/static/js/forms/EventsViewer.js index 6a99ef3f99..10292f6c4c 100644 --- a/awx/ui/static/js/forms/EventsViewer.js +++ b/awx/ui/static/js/forms/EventsViewer.js @@ -45,6 +45,10 @@ angular.module('EventsViewerFormDefinition', []) label: 'Arguments', section: 'Event' }, + item: { + label: 'Item', + section: 'Event' + }, rc: { label: 'Return Code', section: 'Results' diff --git a/awx/ui/static/js/helpers/EventViewer.js b/awx/ui/static/js/helpers/EventViewer.js index 2e336fda59..41f3a14007 100644 --- a/awx/ui/static/js/helpers/EventViewer.js +++ b/awx/ui/static/js/helpers/EventViewer.js @@ -196,14 +196,19 @@ angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFo html = '', e; function parseJSON(obj) { - var html = '', keys, found = false; + var html = '', key, keys, found = false; if (typeof obj === "object") { html += "
| " + label + ": | \n" + parseJSON(obj[key]) + " |