From b3e1026cabc4f64670f404a3ae45d01507dac17d Mon Sep 17 00:00:00 2001 From: Abijeet Date: Fri, 19 Jan 2018 00:49:59 +0530 Subject: Fixes div being added placed directly under ul during editing of comments. Signed-off-by: Abijeet --- apps/comments/js/commentstabview.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/comments') diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index dec2b6545d5..73f19b7cd0b 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -21,7 +21,7 @@ ''; var EDIT_COMMENT_TEMPLATE = - '
' + + '<{{tag}} class="newCommentRow comment" data-id="{{id}}">' + '
' + '
' + '
{{actorDisplayName}}
' + @@ -38,7 +38,7 @@ '{{/if}}' + ' '+ ' ' + - '
'; + ''; var COMMENT_TEMPLATE = '
  • ' + @@ -116,7 +116,8 @@ newMessagePlaceholder: t('comments', 'New comment …'), deleteTooltip: t('comments', 'Delete comment'), submitText: t('comments', 'Post'), - cancelText: t('comments', 'Cancel') + cancelText: t('comments', 'Cancel'), + tag: 'li' }, params)); }, @@ -166,7 +167,7 @@ emptyResultLabel: t('comments', 'No comments yet, start the conversation!'), moreLabel: t('comments', 'More comments …') })); - this.$el.find('.comments').before(this.editCommentTemplate({})); + this.$el.find('.comments').before(this.editCommentTemplate({ tag: 'div'})); this.$el.find('.has-tooltip').tooltip(); this.$container = this.$el.find('ul.comments'); this.$el.find('.avatar').avatar(OC.getCurrentUser().uid, 32); -- cgit v1.2.3