From 17d7c5c799f617f4a4c9388a3e90b18293e33e05 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 3 Aug 2012 14:37:17 +0300 Subject: [PATCH] fixed bug with forming error of loading dir Was : "not found". Now : "Error: EACCES, readdir '/root'" --- client.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client.js b/client.js index 8ee21f52..6976ac46 100644 --- a/client.js +++ b/client.js @@ -759,14 +759,15 @@ CloudClient._ajaxLoad=function(path, pNeedRefresh) $.ajax({ url: path, error: function(jqXHR, textStatus, errorThrown){ - console.log(jqXHR.responseText); - - var lLoading=getById('loading-image'); - ErrorImage.className='icon error'; - ErrorImage.title = errorThrown; + ErrorImage.title = jqXHR.responseText; + lLoading.parentElement.appendChild(ErrorImage); - lLoading.className='hidden'; + + var lLoading = getById('loading-image'); + lLoading.className ='hidden'; + + console.log(jqXHR.responseText); }, success:function(data, textStatus, jqXHR){ /* если такой папки (или файла) нет