Remove hack to prefetch the starred trash icon

Since 6ad7f32938 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 <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2019-01-31 16:38:18 +01:00
parent 61ee72a89d
commit 2aee19a4ba
1 changed files with 0 additions and 3 deletions

View File

@ -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')