aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nüsse <Felix.nuesse@t-online.de>2018-08-29 11:59:20 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-02 08:15:05 +0200
commit91d1154ee043246fca5d9e492c7e67e442d76013 (patch)
tree7d56c0ef7606e45aa3214dcf560c7faac659034e
parent5c2360961eb8c3f2b6617723d5b805f20a067903 (diff)
downloadnextcloud-server-91d1154ee043246fca5d9e492c7e67e442d76013.tar.gz
nextcloud-server-91d1154ee043246fca5d9e492c7e67e442d76013.zip
Fixed highlightdelay on first drag
Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
-rw-r--r--apps/files/js/navigation.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js
index 1fed29471f8..8f2d84d2077 100644
--- a/apps/files/js/navigation.js
+++ b/apps/files/js/navigation.js
@@ -66,7 +66,9 @@
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this));
var favListElement=$(".nav-trashbin");
- console.log(favListElement);
+
+ //this div is required to prefetch the icon, otherwise it takes a second to show up
+ favListElement.append("<div class='nav-icon-trashbin-starred'></div>")
favListElement.droppable({
over: function( event, ui ) {
favListElement.addClass('dropzone-background')