updated console.log

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@133433 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-10-24 10:33:15 +00:00
parent cf8b8b7c76
commit ee48c37983
1 changed files with 2 additions and 2 deletions

View File

@ -615,7 +615,7 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
xhr.onreadystatechange=function() {
if (xhr.readyState === 4){ //if complete
if(xhr.status === 200 || xhr.status === 202){ //either is "OK" (200) or is "Accepted" (202)
// console.log("status is OK");
console.log("status is: "+xhr.status);
//success
} else {
//otherwise, some other code was returned
@ -624,7 +624,7 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
// console.log("status is 401");
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showLogoutDialog()();
}else{
console.log(xhr.status);
console.log("error status: "+xhr.status);
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)("Sorry, an error occurred during file/s upload. Try again");
}
}