mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 04:33:09 +00:00
feature(dom) toggleSelect only when not ".."
This commit is contained in:
parent
32076acbad
commit
3ed9b30994
1 changed files with 4 additions and 0 deletions
|
|
@ -522,6 +522,10 @@ function CmdProto() {
|
|||
|
||||
this.toggleSelectedFile = (currentFile) => {
|
||||
const current = currentFile || DOM.getCurrentFile();
|
||||
const name = DOM.getCurrentName(current);
|
||||
|
||||
if (name === '..')
|
||||
return Cmd;
|
||||
|
||||
current.classList.toggle(SELECTED_FILE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue