added loading image when file going to be edited

This commit is contained in:
coderaiser 2012-08-01 06:00:40 -04:00
parent 27c22c9ec2
commit 4aefbd866f
4 changed files with 53 additions and 32 deletions

View file

@ -587,12 +587,12 @@ CloudClient._ajaxLoad=function(path, pNeedRefresh)
$.ajax({
url: path,
error: function(jqXHR, textStatus, errorThrown){
console.log(textStatus+' : '+errorThrown);
console.log(jqXHR.responseText);
var lLoading=getById('loading-image');
ErrorImage.className='icon error';
ErrorImage.title=errorThrown;
ErrorImage.title = errorThrown;
lLoading.parentElement.appendChild(ErrorImage);
lLoading.className='hidden';
},
@ -622,6 +622,8 @@ CloudClient._ajaxLoad=function(path, pNeedRefresh)
lLoading.parentElement.appendChild(ErrorImage);
lLoading.className = 'hidden';
console.log(jqXHR.responseText);
return;
}
CloudClient._createFileTable(lPanel,data);