mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
fix(listeners) onDblClick: add rm last slash
This commit is contained in:
parent
c2f6e24517
commit
ea947ec35c
1 changed files with 6 additions and 2 deletions
|
|
@ -163,12 +163,16 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
|
||||
function onDblClick(event) {
|
||||
var current = getLIElement(event.target),
|
||||
isDir = DOM.isCurrentIsDir(current);
|
||||
isDir = DOM.isCurrentIsDir(current),
|
||||
path = DOM.getCurrentPath(current);
|
||||
|
||||
path = CloudFunc.rmLastSlash(path);
|
||||
|
||||
if (isDir) {
|
||||
CloudCmd.loadDir({
|
||||
path: DOM.getCurrentPath(current)
|
||||
path: path
|
||||
});
|
||||
|
||||
Events.preventDefault(event);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue