Skip to content
Snippets Groups Projects
Commit dfe922b7 authored by Vincent Petry's avatar Vincent Petry
Browse files

Correctly replace favorites icon when re-rendering file actions

parent a5bb66f4
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment