fix(listeners) unable to navigate into folders (#235)

This commit is contained in:
coderaiser 2019-04-04 11:42:59 +03:00
parent 841e9578b7
commit 46102d1a76

View file

@ -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),
});
}
/*