summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-01-31 19:49:22 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-01-31 19:55:51 +0100
commite46a67ef4c356e7fadababe726c6d1a7fed1ed30 (patch)
tree74d02017f78c10c77b1ffd2fe504bca8295b8371 /apps/files
parent3baa078f702f591af3aa8db31f166383d6a54a80 (diff)
downloadnextcloud-server-e46a67ef4c356e7fadababe726c6d1a7fed1ed30.tar.gz
nextcloud-server-e46a67ef4c356e7fadababe726c6d1a7fed1ed30.zip
Use full names instead of abbreviations in variable names
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/navigation.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js
index 94d247b575a..6f09124a886 100644
--- a/apps/files/js/navigation.js
+++ b/apps/files/js/navigation.js
@@ -65,21 +65,21 @@
this.$el.on('click', 'li a', _.bind(this._onClickItem, this));
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this));
- var trashElement = $('.nav-trashbin');
- trashElement.droppable({
+ var trashBinElement = $('.nav-trashbin');
+ trashBinElement.droppable({
over: function (event, ui) {
- trashElement.addClass('dropzone-background');
+ trashBinElement.addClass('dropzone-background');
},
out: function (event, ui) {
- trashElement.removeClass('dropzone-background');
+ trashBinElement.removeClass('dropzone-background');
},
activate: function (event, ui) {
- var elem = trashElement.find('a').first();
- elem.addClass('nav-icon-trashbin-starred').removeClass('nav-icon-trashbin');
+ var element = trashBinElement.find('a').first();
+ element.addClass('nav-icon-trashbin-starred').removeClass('nav-icon-trashbin');
},
deactivate: function (event, ui) {
- var elem = trashElement.find('a').first();
- elem.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred');
+ var element = trashBinElement.find('a').first();
+ element.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred');
},
drop: function (event, ui) {
var $selectedFiles = $(ui.draggable);