diff options
author | Abijeet <abijeetpatro@gmail.com> | 2018-01-19 00:49:59 +0530 |
---|---|---|
committer | Abijeet <abijeetpatro@gmail.com> | 2018-03-27 00:49:34 +0530 |
commit | b3e1026cabc4f64670f404a3ae45d01507dac17d (patch) | |
tree | 2402267fa584a1533070f304203db506563b13b4 /apps/comments | |
parent | facd1cae2f34d1833563cffe9e6f1361896a80d7 (diff) | |
download | nextcloud-server-b3e1026cabc4f64670f404a3ae45d01507dac17d.tar.gz nextcloud-server-b3e1026cabc4f64670f404a3ae45d01507dac17d.zip |
Fixes div being added placed directly under ul during editing of comments.
Signed-off-by: Abijeet <abijeetpatro@gmail.com>
Diffstat (limited to 'apps/comments')
-rw-r--r-- | apps/comments/js/commentstabview.js | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ '<div class="loading hidden" style="height: 50px"></div>'; var EDIT_COMMENT_TEMPLATE = - '<div class="newCommentRow comment" data-id="{{id}}">' + + '<{{tag}} class="newCommentRow comment" data-id="{{id}}">' + ' <div class="authorRow">' + ' <div class="avatar currentUser" data-username="{{actorId}}"></div>' + ' <div class="author currentUser">{{actorDisplayName}}</div>' + @@ -38,7 +38,7 @@ '{{/if}}' + ' <div class="submitLoading icon-loading-small hidden"></div>'+ ' </form>' + - '</div>'; + '</{{tag}}>'; var COMMENT_TEMPLATE = '<li class="comment{{#if isUnread}} unread{{/if}}{{#if isLong}} collapsed{{/if}}" data-id="{{id}}">' + @@ -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); |