Commit e54c8f88 authored by Nigel McNie's avatar Nigel McNie
Browse files

Format the whitespace in view/artefact feedback properly. No wonder it looked...

Format the whitespace in view/artefact feedback properly. No wonder it looked so wierd on myportfolio.
parent 7a9b5784
......@@ -91,7 +91,7 @@ if ($feedback) {
'ownedbythisuser' => ( $owner == $userid ? true : false ),
'name' => display_name($record->author),
'date' => format_date(strtotime($record->ctime), 'strftimedate'),
'message' => $record->message,
'message' => format_whitespace($record->message),
'ispublic' => $record->public
);
if (!empty($record->attachment)) {
......
......@@ -274,11 +274,14 @@ var feedbacklist = new TableRenderer(
'feedbacktable',
'getfeedback.json.php',
[
function (r) {
function (r) {
var td = TD(null);
td.innerHTML = r.message;
if (r.attachid && r.ownedbythisuser) {
return TD(null, r.message, DIV(null, {$getstring['feedbackattachmessage']}));
appendChildNodes(td, DIV(null, {$getstring['feedbackattachmessage']}));
return td;
}
return TD(null, r.message);
return td;
},
'name',
'date',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment