uncommented submit from for D&D
This commit is contained in:
parent
4a3f31a0d7
commit
9439ffa8c8
src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/uploader/dragdrop
|
@ -672,24 +672,24 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
|
|||
}
|
||||
|
||||
|
||||
// xhr.send(formdata);
|
||||
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::addNewSubmitToMonitor(Ljava/lang/String;)(uploadUUID);
|
||||
//
|
||||
// if(numFolder>0){
|
||||
// var msg;
|
||||
// if(numFolder==files.length){
|
||||
// msg = "Is not possible to upload a folder";
|
||||
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// var msg = "Ignored ";
|
||||
// msg += numFolder > 1? numFolder+" folders": numFolder+" folder";
|
||||
// msg+= " during upload";
|
||||
// console.log(msg);
|
||||
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
|
||||
// }
|
||||
// instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::reset()();
|
||||
xhr.send(formdata);
|
||||
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::addNewSubmitToMonitor(Ljava/lang/String;)(uploadUUID);
|
||||
|
||||
if(numFolder>0){
|
||||
var msg;
|
||||
if(numFolder==files.length){
|
||||
msg = "Is not possible to upload a folder";
|
||||
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
var msg = "Ignored ";
|
||||
msg += numFolder > 1? numFolder+" folders": numFolder+" folder";
|
||||
msg+= " during upload";
|
||||
console.log(msg);
|
||||
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::showAlert(Ljava/lang/String;)(msg);
|
||||
}
|
||||
instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::reset()();
|
||||
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue