mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 10:38:26 +00:00
added loading image when file going to be edited
This commit is contained in:
parent
27c22c9ec2
commit
4aefbd866f
4 changed files with 53 additions and 32 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue