summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-19 12:47:53 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-19 12:47:53 +0200
commitbc18a2900e890a655bbd8268a98359ec3c1e2475 (patch)
treeff2e97766c7c8f3dc561564cd4ab84295509c2b7 /apps
parent185433967e6680d7d5f8138b5241314c879042ac (diff)
downloadnextcloud-server-bc18a2900e890a655bbd8268a98359ec3c1e2475.tar.gz
nextcloud-server-bc18a2900e890a655bbd8268a98359ec3c1e2475.zip
fix avatar displaying after submit (either edit or new)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/js/commentstabview.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index c4b2bd61d4e..828321a6f54 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -401,16 +401,20 @@
$row.data('commentEl')
.removeClass('hidden')
.find('.message')
- .html(self._formatMessage(model.get('message'), model.get('mentions')));
+ .html(self._formatMessage(model.get('message'), model.get('mentions')))
+ .find('.avatar')
+ .each(function () { $(this).avatar(); });
$row.remove();
} else {
var $row = $form.closest('.comments');
- console.log($form);
$('.commentsTabView .comments').find('li:first')
.find('.message')
- .html(self._formatMessage(model.get('message'), model.get('mentions')));
+ .html(self._formatMessage(model.get('message'), model.get('mentions')))
+ .find('.avatar')
+ .each(function () { $(this).avatar(); });
$textArea.val('').prop('disabled', false);
}
+
},
error: function () {
$submit.removeClass('hidden');