From df7e016104f284c29f9c8571d548b64008f1a626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20N=C3=BCsse?= Date: Wed, 29 Aug 2018 12:00:10 +0200 Subject: [PATCH] Refactored Variablename to trashElement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Felix NĂ¼sse --- apps/files/js/navigation.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 8f2d84d207..b3648fedc6 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -65,23 +65,23 @@ this.$el.on('click', 'li a', _.bind(this._onClickItem, this)) this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this)); - var favListElement=$(".nav-trashbin"); + var trashElement=$(".nav-trashbin"); //this div is required to prefetch the icon, otherwise it takes a second to show up - favListElement.append("") - favListElement.droppable({ + trashElement.append("") + trashElement.droppable({ over: function( event, ui ) { - favListElement.addClass('dropzone-background') + trashElement.addClass('dropzone-background') }, out: function( event, ui ) { - favListElement.removeClass('dropzone-background'); + trashElement.removeClass('dropzone-background'); }, activate: function( event, ui ) { - var elem=favListElement.find("a").first(); + var elem=trashElement.find("a").first(); elem.addClass('nav-icon-trashbin-starred').removeClass('nav-icon-trashbin'); }, deactivate: function( event, ui ) { - var elem=favListElement.find("a").first(); + var elem=trashElement.find("a").first(); elem.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred'); }, drop: function( event, ui ) {