diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-01-31 16:38:18 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-01-31 17:40:14 +0100 |
commit | 2aee19a4ba664ad826f1e15fc78a82099e6da1d8 (patch) | |
tree | 660525d8330251871fe943fd6bda58b9f402c9f5 /apps/files | |
parent | 61ee72a89d65de50609d4335e21f64f810e98d9a (diff) | |
download | nextcloud-server-2aee19a4ba664ad826f1e15fc78a82099e6da1d8.tar.gz nextcloud-server-2aee19a4ba664ad826f1e15fc78a82099e6da1d8.zip |
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>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/navigation.js | 3 |
1 files changed, 0 insertions, 3 deletions
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("<div class='nav-icon-trashbin-starred'></div>") trashElement.droppable({ over: function( event, ui ) { trashElement.addClass('dropzone-background') |