fix(client) goToParentDir: when parent is root

This commit is contained in:
coderaiser 2014-09-22 08:31:39 -04:00
parent 4c42e8a414
commit 820c02bec9

View file

@ -480,7 +480,7 @@ var Util, DOM, CloudFunc, join;
if (path !== parentPath) {
path = parentPath;
path = CloudFunc.rmLastSlash(path);
path = CloudFunc.rmLastSlash(path) || '/';
CloudCmd.loadDir({
path: path