summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-24 14:07:39 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-24 16:31:37 +0100
commit9bb2bb7870bf1f8715193c4d90d636e08faa7afd (patch)
tree95667f1ac121ac59d7771b032ad0a1457eaafd4b /apps/comments
parent6e9c0b908513dd8e268f20875c5e5359fe9cbc35 (diff)
downloadnextcloud-server-9bb2bb7870bf1f8715193c4d90d636e08faa7afd.tar.gz
nextcloud-server-9bb2bb7870bf1f8715193c4d90d636e08faa7afd.zip
Show delete working icon at the same position as the delete icon
When a comment was being deleted the submit working icon was shown. Now the submit working icon is kept hidden in that case and a specific delete working icon, which is shown at the same position as the delete icon, is used instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/css/comments.css3
-rw-r--r--apps/comments/js/commentstabview.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/comments/css/comments.css b/apps/comments/css/comments.css
index 428dc778a65..90b3678b219 100644
--- a/apps/comments/css/comments.css
+++ b/apps/comments/css/comments.css
@@ -177,7 +177,8 @@
opacity: 1;
}
-#commentsTabView .comment .action.delete {
+#commentsTabView .comment .action.delete,
+#commentsTabView .comment .deleteLoading {
position: absolute;
right: 0;
}
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 0d2d0b0b81f..d64b70494fd 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -27,6 +27,7 @@
' <div class="author">{{actorDisplayName}}</div>' +
'{{#if isEditMode}}' +
' <a href="#" class="action delete icon icon-delete has-tooltip" title="{{deleteTooltip}}"></a>' +
+ ' <div class="deleteLoading icon-loading-small hidden"></div>'+
'{{/if}}' +
' </div>' +
' <form class="newCommentForm">' +
@@ -543,7 +544,7 @@
ev.preventDefault();
var $comment = $(ev.target).closest('.comment');
var commentId = $comment.data('id');
- var $loading = $comment.find('.submitLoading');
+ var $loading = $comment.find('.deleteLoading');
var $commentField = $comment.find('.message');
var $submit = $comment.find('.submit');
var $cancel = $comment.find('.cancel');