mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactor(dom) uploadFiles: call func with name only ones
This commit is contained in:
parent
39827a6b57
commit
10df9c8d06
1 changed files with 3 additions and 1 deletions
|
|
@ -428,8 +428,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
Util.checkArgs(arguments, ['files']);
|
||||
|
||||
if (files.length) {
|
||||
func = func(files[0].name);
|
||||
|
||||
Util.forEach(files, function(file) {
|
||||
func = Util.exec.with(load, file, func(file.name));
|
||||
func = Util.exec.with(load, file, func);
|
||||
});
|
||||
|
||||
func();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue