From 588aaca30da943e5422ecc8ea737d8c787f1f312 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 16 Aug 2012 05:58:55 -0400 Subject: [PATCH] fixed bug with show load image on right panel refresh --- client.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client.js b/client.js index 7de1fb1c..65c256a3 100644 --- a/client.js +++ b/client.js @@ -444,10 +444,13 @@ CloudClient.Util = (function(){ lErrorImage.className = 'icon error hidden'; var lCurrent; - if(pPosition && pPosition.top){ - lCurrent = lThis.getRefreshButton(); - if(!lCurrent) - lRet_b = false; + if(pPosition){ + if(pPosition.top){ + lCurrent = lThis.getRefreshButton(); + if(!lCurrent) + lRet_b = false; + }else + lCurrent = pPosition.parentElement; } else { @@ -725,7 +728,7 @@ CloudClient._loadDir = (function(pLink,pNeedRefresh){ /* показываем гиф загрузки возле пути папки сверху*/ /* ctrl+r нажата? */ - Util.Images.showLoad(pNeedRefresh ? { top:true } : null); + Util.Images.showLoad(pNeedRefresh ? this : null); var lCurrentFile = Util.getCurrentFile(); /* получаем имя каталога в котором находимся*/