]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly replace favorites icon when re-rendering file actions
authorVincent Petry <pvince81@owncloud.com>
Fri, 12 Dec 2014 16:06:57 +0000 (17:06 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 15 Dec 2014 11:10:54 +0000 (12:10 +0100)
apps/files/js/tagsplugin.js

index 77b3167ab5e0a16801a78993b415d82b7d441327..f75c7d49f77337acc1483cb5de490f1d1907e012 100644 (file)
@@ -42,7 +42,7 @@
                                                '<a href="#" class="action action-favorite ' + (isFavorite ? 'permanent' : '') + '">' +
                                                starState + '</a>'
                                        );
-                                       $file.find('td:first>.favorite').prepend($icon);
+                                       $file.find('td:first>.favorite').replaceWith($icon);
                                        return $icon;
                                },
                                actionHandler: function(fileName, context) {