From a4f45caebb0622014e6e28780033361f42d87fa7 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 14 Jun 2017 18:25:54 +0200 Subject: [PATCH] Lint --- www/drive/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index 2014c9ee1..cfa794cbf 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1438,6 +1438,7 @@ define([ var createUploadButton = function () { var inTrash = filesOp.isPathIn(currentPath, [TRASH]); + if (inTrash) { return; } var $icon = $('', { 'class': 'fa fa-upload' }); @@ -1632,7 +1633,7 @@ define([ var createToolbar = function () { var $toolbar = $driveToolbar; $toolbar.html(''); - var $leftside = $('
', {'class': 'leftside'}).appendTo($toolbar); + $('
', {'class': 'leftside'}).appendTo($toolbar); $('
', {'class': 'rightside'}).appendTo($toolbar); $('
', {'class': 'path unselectable'}).appendTo($toolbar); return $toolbar;