Correctly replace favorites icon when re-rendering file actions

This commit is contained in:
Vincent Petry 2014-12-12 17:06:57 +01:00
parent a5bb66f4a7
commit dfe922b72a

View 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) {