Comments: Put comment content inside a span

So when editing we do not override the author's name.
This commit is contained in:
2017-11-08 22:01:34 +01:00
parent 8ef89d0b53
commit cb0272fe60
3 changed files with 4 additions and 4 deletions

View File

@@ -235,7 +235,7 @@ function commentEditCancel(clicked_item, reload_comment) {
return loadComment(comment_id, {'properties.content': 1})
.done(function(data) {
var comment_html = data['properties']['content_html'];
comment_container.find('.comment-body').html(comment_html);
comment_container.find('.comment-body span').html(comment_html);
})
.fail(function(xhr) {
if (console) console.log('Error fetching comment: ', xhr);