Skip to content

Commit

Permalink
[cmd:upload] fix #2379 icon of target folder list is not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Feb 8, 2018
1 parent c6a19d4 commit de16dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/commands/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit de16dc6

Please sign in to comment.