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;