Updated constants
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@121713 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d29d5f88d0
commit
b63917c05a
|
@ -15,6 +15,9 @@ public class ConstantsWorkspaceUploader {
|
|||
|
||||
public static final String WORKSPACE_UPLOADER_SERVLET_STREAM = GWT.getModuleBaseURL() + "workspaceUploadServletStream";
|
||||
|
||||
public static final String WORKSPACE_UPLOADER_SERVICE = GWT.getModuleBaseURL() + "workspaceUploaderService";
|
||||
|
||||
|
||||
public static final String SERVER_ERROR = "Sorry, an error has occurred on the server when";
|
||||
public static final String TRY_AGAIN = "Try again";
|
||||
|
||||
|
|
|
@ -35,6 +35,8 @@ public class MultipleDNDUpload extends LayoutPanel implements
|
|||
|
||||
// private String jsonKeys;
|
||||
private String servlet = ConstantsWorkspaceUploader.WORKSPACE_UPLOADER_SERVLET_STREAM;
|
||||
private String service = ConstantsWorkspaceUploader.WORKSPACE_UPLOADER_SERVICE;
|
||||
|
||||
public static final String FILE_DELEMITER = ";";
|
||||
private Widget onlyChild;
|
||||
|
||||
|
@ -607,6 +609,29 @@ public class MultipleDNDUpload extends LayoutPanel implements
|
|||
}
|
||||
}-*/;
|
||||
|
||||
|
||||
public static native void test(String parentIdentifier, String name)/*-{
|
||||
var servlet = instance.@org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload::service;
|
||||
|
||||
var jqxhr = $.get("itemExistsInWorkpaceFolder?", function() {
|
||||
alert( "success" );
|
||||
})
|
||||
.done(function() {
|
||||
alert( "second success" );
|
||||
})
|
||||
.fail(function() {
|
||||
alert( "error" );
|
||||
})
|
||||
.always(function() {
|
||||
alert( "finished" );
|
||||
});
|
||||
// Perform other work here ...
|
||||
// Set another completion function for the request above
|
||||
jqxhr.always(function() {
|
||||
alert( "second finished" );
|
||||
});
|
||||
}-*/;
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue