aboutsummaryrefslogtreecommitdiffstats
path: root/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexTaskTab.js
diff options
context:
space:
mode:
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexTaskTab.js')
-rw-r--r--gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexTaskTab.js17
1 files changed, 7 insertions, 10 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexTaskTab.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexTaskTab.js
index 28d9379..9c79ad4 100644
--- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexTaskTab.js
+++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexTaskTab.js
@@ -2,6 +2,7 @@
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
* Modifications Copyright (C) 2020-2021 Nordix Foundation.
+ * Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,8 +38,8 @@ function taskTab_activate() {
ajax_get(requestURL, function(data) {
$("#taskTableBody").find("tr:gt(0)").remove();
- for (let i = 0; i < data.messages.message.length; i++) {
- const task = JSON.parse(data.messages.message[i]).apexTask;
+ for (let value of data.messages.message) {
+ const task = JSON.parse(value).apexTask;
const taskRow_tr = document.createElement("tr");
@@ -51,8 +52,7 @@ function taskTab_activate() {
"</td>";
taskTableRow += "<td><table class='ebTable'><thead><tr class='headerRow'><th>Field Name</th><th>Field Type/Schema</th><th>Optional</th></tr></thead><tbody>";
- for (var f = 0; f < task.inputFields.entry.length; f++) {
- var fieldEntry = task.inputFields.entry[f];
+ for (let fieldEntry of task.inputFields.entry) {
taskTableRow +=
"<tr><td>" +
@@ -67,8 +67,7 @@ function taskTab_activate() {
taskTableRow += "</tbody></table></td>";
taskTableRow += "<td><table class='ebTable'><thead><tr class='headerRow'><th>Field Name</th><th>Field Type/Schema</th><th>Optional</th></tr></thead><tbody>";
- for (var t = 0; t < task.outputFields.entry.length; t++) {
- fieldEntry = task.outputFields.entry[t];
+ for (let fieldEntry of task.outputFields.entry) {
taskTableRow +=
"<tr><td>" +
@@ -83,8 +82,7 @@ function taskTab_activate() {
taskTableRow += "</tbody></table></td>";
taskTableRow += "<td><table class='ebTable'><thead><tr class='headerRow'><th>Parameter Name</th><th>Default Value</th></tr></thead><tbody>";
- for (var p = 0; p < task.taskParameters.entry.length; p++) {
- var parameterEntry = task.taskParameters.entry[p];
+ for (let parameterEntry of task.taskParameters.entry) {
taskTableRow +=
"<tr><td>" +
@@ -97,8 +95,7 @@ function taskTab_activate() {
taskTableRow += "</tbody></table></td>";
taskTableRow += "<td><table class='ebTable'><tbody>";
- for (var c = 0; c < task.contextAlbumReference.length; c++) {
- var contextAlbumReference = task.contextAlbumReference[c];
+ for (let contextAlbumReference of task.contextAlbumReference) {
taskTableRow +=
"<tr><td>" +