decodeURI row.Message

This commit is contained in:
Isaac Connor
2021-02-02 09:09:53 -05:00
parent b6c258c41f
commit 49d3e5ddbf

View File

@@ -31,11 +31,21 @@ function ajaxRequest(params) {
.done(function(data) {
//console.log('Ajax parameters: ' + JSON.stringify(params));
// rearrange the result into what bootstrap-table expects
params.success({total: data.total, totalNotFiltered: data.totalNotFiltered, rows: data.rows});
params.success({
total: data.total,
totalNotFiltered: data.totalNotFiltered,
rows: processRows(data.rows)
});
updateHeaderStats(data);
})
.fail(logAjaxFail);
}
function processRows(rows) {
$j.each(rows, function(ndx, row) {
row.Message = decodeURI(row.Message);
});
return rows;
}
function updateHeaderStats(data) {
var pageNum = table.bootstrapTable('getOptions').pageNumber;