changing the java scrip to support IE

The current or each funtion is not supported my IE and EGDE browsers so we replace that logic with JQuery each to suport IE and EDGE browsers
revert-70aa11f8
kamidu 7 years ago
parent 6b99197b54
commit 967582d0c3

@ -178,19 +178,17 @@ function loadOperationsLog(update) {
responseMsg = activityStatus['0'].responses['0'].response; responseMsg = activityStatus['0'].responses['0'].response;
} }
Object.entries(activityStatus).forEach( $. each (payload.activityStatus, function (key, entry) {
([key, entry]) => { logStream += '<div class="row log-entry">' +
logStream += '<div class="row log-entry">' + '<div class="col-lg-8">' +
'<div class="col-lg-8">' + '<div class="log-status"><i class="icon fw ' + getLogStatusIcon(entry.status) + ' "></i>' +
'<div class="log-status"><i class="icon fw ' + getLogStatusIcon(entry.status) + ' "></i>' + '<span>' + entry.status + '</span></div>' +
'<span>' + ((responseMsg == null) ? entry.status : responseMsg) + '</span></div>' + '</div>' +
'</div>' + '<div class="col-lg-4">' +
'<div class="col-lg-4">' + '<div class="log-time text-right"><span>' + entry.updatedTimestamp + '</span></div>' +
'<div class="log-time text-right"><span>' + entry.updatedTimestamp + '</span></div>' + '</div>' +
'</div>' + '</div>';
'</div>'; });
}
);
logStream += '</div></div>'; logStream += '</div></div>';
return logStream; return logStream;

Loading…
Cancel
Save