Revert unintended changes
This commit is contained in:
@ -187,14 +187,14 @@ javascript:
|
||||
<div class="comment-date">' + comment.date + '</div> \
|
||||
<div class="comment-updated' + (comment.updated ? '' : ' d-none') + '"> \
|
||||
<i class="fa fa-pencil" aria-hidden="true"></i> \
|
||||
#{{ t(';request_for_comments.comment_edited;') }} \
|
||||
#{{ t('request_for_comments.comment_edited') }} \
|
||||
</div> \
|
||||
</div> \
|
||||
<div class="comment-content">' + commentText + '</div> \
|
||||
<textarea class="comment-editor">' + commentText + '</textarea> \
|
||||
<div class="comment-actions' + (comment.editable ? '' : ' d-none') + '"> \
|
||||
<button class="action-edit btn btn-sm btn-warning">#{ t(';shared.edit;') }</button> \
|
||||
<button class="action-delete btn btn-sm btn-danger">#{ t(';shared.destroy;') }</button> \
|
||||
<button class="action-edit btn btn-sm btn-warning">#{ t('shared.edit') }</button> \
|
||||
<button class="action-delete btn btn-sm btn-danger">#{ t('shared.destroy') }</button> \
|
||||
</div> \
|
||||
</div>';
|
||||
});
|
||||
@ -207,7 +207,7 @@ javascript:
|
||||
var htmlContent = generateCommentHtmlContent(comments.reverse().slice(0, maxComments));
|
||||
if (comments.length > maxComments) {
|
||||
// add a hint that there are more comments than shown here
|
||||
htmlContent += '<div class="popover-footer">#{ t(';request_for_comments.click_for_more_comments;') }</div>'
|
||||
htmlContent += '<div class="popover-footer">#{ t('request_for_comments.click_for_more_comments') }</div>'
|
||||
.replace('${numComments}', String(comments.length - maxComments));
|
||||
}
|
||||
where.popover({
|
||||
@ -396,7 +396,7 @@ javascript:
|
||||
var commentId = parent.data('comment-id');
|
||||
|
||||
deleteComment(commentId, editor, fileid, function () {
|
||||
parent.html('<div class="comment-removed">#{ t(';comments.deleted;') }</div>';)
|
||||
parent.html('<div class="comment-removed">#{ t('comments.deleted') }</div>');
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user