From: Vincent Petry Date: Fri, 12 Dec 2014 16:06:57 +0000 (+0100) Subject: Correctly replace favorites icon when re-rendering file actions X-Git-Tag: v8.0.0alpha1~83^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dfe922b72aad25ad478365ade6deecb063de0f59;p=nextcloud-server.git Correctly replace favorites icon when re-rendering file actions --- diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js index 77b3167ab5e..f75c7d49f77 100644 --- a/apps/files/js/tagsplugin.js +++ b/apps/files/js/tagsplugin.js @@ -42,7 +42,7 @@ '' + starState + '' ); - $file.find('td:first>.favorite').prepend($icon); + $file.find('td:first>.favorite').replaceWith($icon); return $icon; }, actionHandler: function(fileName, context) {