mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(client) loadDir: rm event
This commit is contained in:
parent
a41b26b458
commit
dc905720b9
2 changed files with 9 additions and 8 deletions
|
|
@ -35,7 +35,7 @@ var Util, DOM, CloudFunc;
|
|||
* }
|
||||
* @param event
|
||||
*/
|
||||
this.loadDir = function(params, event) {
|
||||
this.loadDir = function(params) {
|
||||
var link, imgPosition, panelChanged, pathParams,
|
||||
isRefresh, panel,
|
||||
currentLink = DOM.getCurrentLink(),
|
||||
|
|
@ -72,11 +72,8 @@ var Util, DOM, CloudFunc;
|
|||
refresh: isRefresh
|
||||
}, panel);
|
||||
}
|
||||
|
||||
DOM.preventDefault(event);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* функция устанавливает курсор на каталог
|
||||
* с которого мы пришли, если мы поднялись
|
||||
|
|
|
|||
|
|
@ -200,8 +200,10 @@ var Util, DOM, CloudCmd;
|
|||
var current = getLIElement(event.target),
|
||||
isDir = DOM.isCurrentIsDir(current);
|
||||
|
||||
if (isDir)
|
||||
CloudCmd.loadDir(null, event);
|
||||
if (isDir) {
|
||||
CloudCmd.loadDir();
|
||||
DOM.preventDefault(event);
|
||||
}
|
||||
}
|
||||
|
||||
function onTouch(event) {
|
||||
|
|
@ -212,8 +214,10 @@ var Util, DOM, CloudCmd;
|
|||
if (isDir) {
|
||||
isCurrent = DOM.isCurrentFile(element);
|
||||
|
||||
if (isCurrent)
|
||||
CloudCmd.loadDir(null, event);
|
||||
if (isCurrent) {
|
||||
CloudCmd.loadDir();
|
||||
DOM.preventDefault(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue