Skip to content

Commit

Permalink
[proxy:APIv1] send parameter tree=1 when paste folder
Browse files Browse the repository at this point in the history
ref. #178
  • Loading branch information
nao-pon committed Jul 25, 2016
1 parent 2bdee5d commit 24cb2a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/proxy/elFinderSupportVer1.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,15 @@ window.elFinderSupportVer1 = function(upload) {
opts.data.current = opts.data.target;
break;
case 'paste':
opts.data.current = opts.data.dst
opts.data.current = opts.data.dst;
if (! opts.data.tree) {
$.each(opts.data.targets, function(i, h) {
if (fm.file(h) && fm.file(h).mime === 'directory') {
opts.data.tree = '1';
return false;
}
});
}
break;

case 'size':
Expand Down

0 comments on commit 24cb2a7

Please sign in to comment.