mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(menu) download: toggle selection of file only if file was selected
This commit is contained in:
parent
aa0f2e9f4c
commit
999fefa0e5
1 changed files with 3 additions and 1 deletions
|
|
@ -239,6 +239,7 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
|
|||
|
||||
files.forEach(function(file) {
|
||||
var element,
|
||||
selected = DOM.isSelected(file),
|
||||
path = DOM.getCurrentPath(file),
|
||||
id = DOM.load.getIdBySrc(path),
|
||||
isDir = DOM.isCurrentIsDir(file),
|
||||
|
|
@ -260,7 +261,8 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
|
|||
document.body.removeChild(element);
|
||||
}, TIME);
|
||||
|
||||
DOM.toggleSelectedFile(file);
|
||||
if (selected)
|
||||
DOM.toggleSelectedFile(file);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue