Skip to content

Commit 1f9c881

Browse files
committed
Remove hack to prefetch the starred trash icon
Since 6ad7f32 SVG icons are directly embedded in "icons-vars.css", so the starred trash icon is now loaded along with the regular trash icon all at once. Therefore it is not needed to explicitly prefetch it using a hidden div. Signed-off-by: Daniel Calviño Sánchez <[email protected]>
1 parent 52f0633 commit 1f9c881

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apps/files/js/navigation.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@
6666
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this));
6767

6868
var trashElement=$(".nav-trashbin");
69-
70-
//this div is required to prefetch the icon, otherwise it takes a second to show up
71-
trashElement.append("<div class='nav-icon-trashbin-starred'></div>")
7269
trashElement.droppable({
7370
over: function( event, ui ) {
7471
trashElement.addClass('dropzone-background')

0 commit comments

Comments
 (0)