MessageDto instead of String in Event history

This commit is contained in:
Szakalakamaka
2020-11-19 10:14:51 +01:00
parent 56baf9641e
commit 52893c2888
18 changed files with 84 additions and 74 deletions

View File

@@ -13,8 +13,7 @@ var state = {
'window': 5,
}
var myList, data, previousSort, messageList;
messageList = messageListForPagination;
var myList, data, previousSort;
state.querySet = listForPagination;
buildTable();
@@ -101,6 +100,7 @@ function showTable() {
var table = $('#table-body')
table.empty();
var color;
console.log(myList);
for (var i = 1; i <= myList.length; i++) {
var j = i + (state.page - 1) * 10;
i % 2 === 0 ? color = "#b3ffff" : color="#e6ffff";
@@ -111,7 +111,7 @@ function showTable() {
<td>${myList[i-1].interfaceName}</td>
</tr>
<tr bgcolor="${color}" id="etrack-tr-${j}-body" name="tr-body" hidden>
<td colspan="4">"${messageList[i-1]}"</td>
<td colspan="4">"${JSON.stringify(myList[i-1])}"</td>
</tr>`
table.append(row)