From de16dc6b61ea22f783e614ee37525ba58523e2c6 Mon Sep 17 00:00:00 2001 From: nao-pon Date: Thu, 8 Feb 2018 17:32:03 +0900 Subject: [PATCH] [cmd:upload] fix #2379 icon of target folder list is not shown --- js/commands/upload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/commands/upload.js b/js/commands/upload.js index 727221f6a7..739e1595c5 100644 --- a/js/commands/upload.js +++ b/js/commands/upload.js @@ -95,8 +95,8 @@ elFinder.prototype.commands.upload = function() { }, getSelector = function() { var hash = targetDir.hash, - dirs = $.grep(fm.files(hash), function(f) { - return (f.mime === 'directory' && f.write)? true : false; + dirs = $.map(fm.files(hash), function(f) { + return (f.mime === 'directory' && f.write)? f : null; }); if (! dirs.length) {