diff --git a/lib/client.js b/lib/client.js index c78e8945..13b85ed9 100644 --- a/lib/client.js +++ b/lib/client.js @@ -72,7 +72,7 @@ var Util, DOM, CloudFunc, CloudCmd; /** - * @description функция устанавливает курсор на каталог + * функция устанавливает курсор на каталог * с которого мы пришли, если мы поднялись * в верх по файловой структуре * @param pDirName - имя каталога с которого мы пришли @@ -357,7 +357,7 @@ var Util, DOM, CloudFunc, CloudCmd; /** - * @description функция меняет ссыки на ajax-овые + * функция меняет ссыки на ajax-овые * @param pPanelID */ function changeLinks(pPanelID){ @@ -480,7 +480,7 @@ var Util, DOM, CloudFunc, CloudCmd; '(' + pPanelID + ')'; } } - }; + } /** * Функция загружает json-данные о Файловой Системе @@ -567,11 +567,9 @@ var Util, DOM, CloudFunc, CloudCmd; lPath = DOM.getByClass('path', lElem), lCurrent = DOM.getCurrentFile(), - lCurrentLink = DOM.getCurrentLink(lCurrent), - lParent = lCurrentLink.textContent, lDir = DOM.getCurrentDirName(), - lName = DOM.getCurrentName(lName), + lName = DOM.getCurrentName(lCurrent), lWasRefresh_b = lPath[0].textContent === pJSON[0].path; CloudCmd.getFileTemplate(function(pTemplate){ @@ -608,7 +606,7 @@ var Util, DOM, CloudFunc, CloudCmd; changeLinks(pElem); - if(lParent === '..' && lDir !== '/') + if(lName === '..' && lDir !== '/') currentToParent(lDir); }); }); diff --git a/lib/client/menu.js b/lib/client/menu.js index 80d18f29..7eae56d0 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -186,7 +186,7 @@ var CloudCmd, Util, DOM, CloudFunc, $; var m = "clicked: " + key; Util.log(m, options); - Key.set(); + Key.setBind(); }, // define the elements of the menu @@ -248,7 +248,7 @@ var CloudCmd, Util, DOM, CloudFunc, $; DOM.setCurrentFile(lElement); } - Key.set(); + Key.setBind(); } } @@ -308,7 +308,7 @@ var CloudCmd, Util, DOM, CloudFunc, $; } } else if (lKey === lESC) - Key.set(); + Key.setBind(); } }; diff --git a/lib/client/storage/_github.js b/lib/client/storage/_github.js index 773bbffd..9ee2b8e4 100644 --- a/lib/client/storage/_github.js +++ b/lib/client/storage/_github.js @@ -115,7 +115,7 @@ var CloudCmd, Util, DOM, $, Github, cb; var lGist = GithubLocal.getGist(), lFiles = {}, - lHost = CloudCommander.HOST, + lHost = CloudCmd.HOST, lOptions = { description: 'Uplouded by Cloud Commander from ' + lHost, public: true