From 2aee19a4ba664ad826f1e15fc78a82099e6da1d8 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Thu, 31 Jan 2019 16:38:18 +0100 Subject: Remove hack to prefetch the starred trash icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apps/files/js/navigation.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'apps/files/js') diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index acfda3b6ce8..f749bf5dd51 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -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("") trashElement.droppable({ over: function( event, ui ) { trashElement.addClass('dropzone-background') -- cgit v1.2.3