From f06196c26193457694819aba4722243c11f28ccd Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 28 Feb 2017 15:48:49 +0100 Subject: [PATCH] Remove the context menu buttons when removing selection --- www/drive/main.js | 3 +++ 1 file changed, 3 insertions(+) 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');