mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(dom) promptDeletSelected: selected -> names
This commit is contained in:
parent
3504874726
commit
3d4f9a8034
1 changed files with 3 additions and 3 deletions
|
|
@ -767,15 +767,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
msgAsk = 'Do you really want to delete the ',
|
||||
msgSel = 'selected ',
|
||||
files = Cmd.getSelectedFiles(),
|
||||
selected = Cmd.getSelectedNames(files),
|
||||
i, n = selected && selected.length;
|
||||
names = Cmd.getSelectedNames(files),
|
||||
i, n = names && names.length;
|
||||
|
||||
if (!Cmd.isCurrentFile(pCurrentFile))
|
||||
pCurrentFile = null;
|
||||
|
||||
if (n > 1) {
|
||||
for (i = 0; i < 5 && i < n; i++)
|
||||
name += '\n' + selected[i];
|
||||
name += '\n' + names[i];
|
||||
|
||||
if (n >= 5)
|
||||
name += '\n...';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue