mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-03 13:41:51 -04:00
decodeURI row.Message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user