fix(key) double slash in path

This commit is contained in:
coderaiser 2015-07-23 05:38:34 -04:00
parent c9b692382f
commit 06788687c3

View file

@ -451,7 +451,7 @@ var CloudCmd, Util, DOM;
case Key.ENTER:
if (Info.isDir)
CloudCmd.loadDir({
path: DOM.getCurrentPath() + '/'
path: path === '/' ? '/' : path + '/'
});
break;