mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(listeners) unable to navigate into folders (#235)
This commit is contained in:
parent
841e9578b7
commit
46102d1a76
1 changed files with 10 additions and 13 deletions
|
|
@ -286,20 +286,17 @@ function onTouch(event) {
|
|||
const current = getLIElement(event.target);
|
||||
const isDir = DOM.isCurrentIsDir(current);
|
||||
|
||||
if (!isDir){
|
||||
|
||||
const isCurrent = DOM.isCurrentFile(current);
|
||||
|
||||
if (!isCurrent)
|
||||
return;
|
||||
|
||||
CloudCmd.loadDir({
|
||||
path: DOM.getCurrentPath(current),
|
||||
});
|
||||
if (!isDir)
|
||||
return CloudCmd.View.show();
|
||||
|
||||
} else {
|
||||
CloudCmd.View.show();
|
||||
}
|
||||
const isCurrent = DOM.isCurrentFile(current);
|
||||
|
||||
if (!isCurrent)
|
||||
return;
|
||||
|
||||
CloudCmd.loadDir({
|
||||
path: DOM.getCurrentPath(current),
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue