From ab3954745ca882ff5d70fd3e4241167e089ac9fb Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 21 Oct 2016 22:57:06 +0200 Subject: [PATCH] avoid that all avatars are copied to the author row when editing comments Signed-off-by: Arthur Schiwon --- apps/comments/js/commentstabview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index e2cefbfd11..8387e527f4 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -307,7 +307,7 @@ $formRow.find('textarea').on('keydown input change', this._onTypeComment); // copy avatar element from original to avoid flickering - $formRow.find('.avatar').replaceWith($comment.find('.avatar').clone()); + $formRow.find('.avatar:first').replaceWith($comment.find('.avatar:first').clone()); $formRow.find('.has-tooltip').tooltip(); // Enable autosize