diff --git a/www/drive/main.js b/www/drive/main.js index b93a4b774..94c5d91b2 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -238,6 +238,9 @@ define([ var removeSelected = function () { $iframe.find('.selected').removeClass("selected"); + var $container = $driveToolbar.find('#contextButtonsContainer'); + if (!$container.length) { return; } + $container.html(''); }; var removeInput = function () { $iframe.find('li > span:hidden').removeAttr('style');