diff options
author | Felix Nüsse <Felix.nuesse@t-online.de> | 2018-08-29 12:00:10 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-02 08:15:05 +0200 |
commit | df7e016104f284c29f9c8571d548b64008f1a626 (patch) | |
tree | 44d4231acd55cde56f21c4cf916a2c9fe0d042ac /apps/files/js | |
parent | 91d1154ee043246fca5d9e492c7e67e442d76013 (diff) | |
download | nextcloud-server-df7e016104f284c29f9c8571d548b64008f1a626.tar.gz nextcloud-server-df7e016104f284c29f9c8571d548b64008f1a626.zip |
Refactored Variablename to trashElement
Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/navigation.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 8f2d84d2077..b3648fedc6c 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("<div class='nav-icon-trashbin-starred'></div>") - favListElement.droppable({ + trashElement.append("<div class='nav-icon-trashbin-starred'></div>") + 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 ) { |