summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
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/js
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/js')
-rw-r--r--apps/comments/js/commentstabview.js3
1 files changed, 2 insertions, 1 deletions
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');