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

@@ -154,7 +154,7 @@ script.
var $parent_div = $(this).closest('.comment-container');
var comment_id = $parent_div.data('node-id');
var comment_content = $parent_div.find('.comment-body');
var comment_content = $parent_div.find('.comment-body span');
var height = comment_content.height();
loadComment(comment_id, {'properties.content': 1})
@@ -207,7 +207,7 @@ script.
.done(function(comment_id, comment_html) {
commentEditCancel($button, false)
$container.find('.comment-body')
$container.find('.comment-body span')
.html(comment_html)
.flashOnce();