minor changes

This commit is contained in:
coderaiser 2012-08-16 04:05:41 -04:00
parent bfc34da314
commit 607a6fb397
2 changed files with 8 additions and 9 deletions

View file

@ -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

View file

@ -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);