mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(dom) processFiles: when names.length !== 1 name is undefined
This commit is contained in:
parent
15a0da37f2
commit
3da7e63da2
1 changed files with 3 additions and 3 deletions
|
|
@ -1604,11 +1604,11 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
|
||||
if (!length) {
|
||||
name = DOM.getCurrentName();
|
||||
names.push(name);
|
||||
} else if (length === 1) {
|
||||
name = names[0];
|
||||
names = [name];
|
||||
}
|
||||
|
||||
name = names[0];
|
||||
|
||||
if (length > 1)
|
||||
msg += n + ' file(s)';
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue