Skip to content
Merged
Next Next commit
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]>
  • Loading branch information
danxuliu committed Jan 31, 2019
commit 2aee19a4ba664ad826f1e15fc78a82099e6da1d8
3 changes: 0 additions & 3 deletions apps/files/js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this));

var trashElement=$(".nav-trashbin");

//this div is required to prefetch the icon, otherwise it takes a second to show up
trashElement.append("<div class='nav-icon-trashbin-starred'></div>")
trashElement.droppable({
over: function( event, ui ) {
trashElement.addClass('dropzone-background')
Expand Down