From 8849872799dfacb00f857c15c96ff6dc5338e356 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 5 Jul 2023 15:14:25 +0200 Subject: [PATCH] Replace "Unselect" with "Unselect all" in right click menu Signed-off-by: Louis Chemineau --- js/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/files.js b/js/files.js index 216cec7..63bc106 100644 --- a/js/files.js +++ b/js/files.js @@ -59,8 +59,8 @@ if (currentFile.hasClass('selected')) { menu.find('ul').html(''); - addNewOption('Check', 'category-disabled', t(appName, 'Unselect'), function () { - $(currentFile.find('input.selectCheckBox')).click(); + addNewOption('Check', 'category-disabled', t(appName, 'Unselect all'), function () { + currentFile.closest('tbody').find('tr input.selectCheckBox:checked').trigger('click') }); $.each($('.selectedActions:not(.hidden) .menu-center li:not(.hidden)'), function (i, selectedAction) {