mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(client) currentToParent
This commit is contained in:
parent
03a6c2c594
commit
0bbf5a0e82
1 changed files with 7 additions and 7 deletions
|
|
@ -66,15 +66,15 @@ var Util, DOM, CloudFunc;
|
|||
* в верх по файловой структуре
|
||||
* @param pDirName - имя каталога с которого мы пришли
|
||||
*/
|
||||
function currentToParent(pDirName) {
|
||||
var lRootDir;
|
||||
function currentToParent(dirName) {
|
||||
var rootDir;
|
||||
/* убираем слэш с имени каталога */
|
||||
pDirName = Util.removeStr(pDirName, '/');
|
||||
lRootDir = DOM.getCurrentFileByName(pDirName);
|
||||
dirName = Util.removeStr(dirName, '/');
|
||||
rootDir = DOM.getCurrentFileByName(dirName);
|
||||
|
||||
if (lRootDir) {
|
||||
DOM.setCurrentFile(lRootDir);
|
||||
DOM.scrollIntoViewIfNeeded(lRootDir, true);
|
||||
if (rootDir) {
|
||||
DOM.setCurrentFile(rootDir);
|
||||
DOM.scrollIntoViewIfNeeded(rootDir, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue