mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 09:24:07 +00:00
refactor(listeners) loadDir: getCurrentPath -> getCurrentPath(current)
This commit is contained in:
parent
749562c46f
commit
40890b353d
1 changed files with 5 additions and 5 deletions
|
|
@ -167,7 +167,7 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
|
||||
if (isDir) {
|
||||
CloudCmd.loadDir({
|
||||
path: DOM.getCurrentPath()
|
||||
path: DOM.getCurrentPath(current)
|
||||
});
|
||||
Events.preventDefault(event);
|
||||
}
|
||||
|
|
@ -175,15 +175,15 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
|
||||
function onTouch(event) {
|
||||
var isCurrent,
|
||||
element = getLIElement(event.target),
|
||||
isDir = DOM.isCurrentIsDir(element);
|
||||
current = getLIElement(event.target),
|
||||
isDir = DOM.isCurrentIsDir(current);
|
||||
|
||||
if (isDir) {
|
||||
isCurrent = DOM.isCurrentFile(element);
|
||||
isCurrent = DOM.isCurrentFile(current);
|
||||
|
||||
if (isCurrent) {
|
||||
CloudCmd.loadDir({
|
||||
path: DOM.getCurrentPath()
|
||||
path: DOM.getCurrentPath(current)
|
||||
});
|
||||
|
||||
Events.preventDefault(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue