feature(dom) add goToDirectory

This commit is contained in:
coderaiser 2015-05-14 06:21:49 -04:00
parent c8de19c7b4
commit 10cbb16645
3 changed files with 18 additions and 0 deletions

View file

@ -1772,6 +1772,17 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
return this;
};
this.goToDirectory = function() {
var msg = 'Go to directory:',
path = CurrentInfo.dirPath;
path = prompt(msg, path);
path && CloudCmd.loadDir({
path: path
});
},
this.duplicatePanel = function() {
var isDir = CurrentInfo.isDir,
path = CurrentInfo.dirPath,

View file

@ -472,6 +472,12 @@ var CloudCmd, Util, DOM;
break;
case Key.G:
if (alt)
DOM.goToDirectory();
break;
/**
* обновляем страницу,
* загружаем содержимое каталога