diff --git a/js/files.js b/js/files.js index 7eb238e..216cec7 100644 --- a/js/files.js +++ b/js/files.js @@ -63,7 +63,7 @@ $(currentFile.find('input.selectCheckBox')).click(); }); - $.each($('.selectedActions .menu-center li:not(.hidden)'), function (i, selectedAction) { + $.each($('.selectedActions:not(.hidden) .menu-center li:not(.hidden)'), function (i, selectedAction) { var action = $(selectedAction); addNewOption(action.attr('class'), $(action.find('span.icon')).attr('class').replace('icon', '').replace(' ', '').replace('icon-', ''), $(action.find('span:not(.icon)')).text(), function () {