decodeURI row.Message

pull/3122/head
Isaac Connor 2021-02-02 09:09:53 -05:00
parent b6c258c41f
commit 49d3e5ddbf
1 changed files with 11 additions and 1 deletions

View File

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