diff --git a/client.js b/client.js index 250a738a..05f321c4 100644 --- a/client.js +++ b/client.js @@ -444,14 +444,15 @@ CloudClient.Util = (function(){ lErrorImage.className = 'icon error hidden'; var lCurrent; - if(pPosition && pPosition.top){ - lCurrent = this.getRefreshButton(); - if(!lCurrent) lRet_b = false; + if(pPosition && pPosition.top){ + lCurrent = lThis.getRefreshButton(); + if(!lCurrent) + lRet_b = false; } else { - lCurrent = lThis.getCurrentFile(); - lCurrent = lCurrent.firstChild.nextSibling; + lCurrent = lThis.getCurrentFile(); + lCurrent = lCurrent.firstChild.nextSibling; } /* show loading icon diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index b9bf2f47..b29f2f36 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -296,15 +296,13 @@ CloudCommander.keyBinding = (function(){ /* получаем название файла*/ var lSelectedName = lCurrentFile .getElementsByTagName('a')[0].textContent; + /* если нашли элемент нажимаем него * а если не можем - нажимаем на * ссылку, на которую повешен eventHandler * onclick */ - //if(lRefreshIcon.click) - // lRefreshIcon.parentElement.click(); - //else - lRefreshIcon.onclick(); + lRefreshIcon.onclick(); CloudCommander._currentToParent(lSelectedName);