Updated Overwrite message.. due to File Versioning
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@144065 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b445d6e202
commit
b2c55f8972
|
@ -290,7 +290,7 @@ public class DialogUpload extends ClosableDialog implements HasWorskpaceUploadNo
|
|||
GWT.log("itemExistsInWorkpaceFolder: "+itemId);
|
||||
if(itemId!=null){
|
||||
// HANDLE OWERWRITE
|
||||
if(Window.confirm(label + " exists in folder. Overwrite?")){
|
||||
if(Window.confirm(label + " exists in folder. If you continue, a new version will be created")){
|
||||
removeItemAndSubmitForm(itemId);
|
||||
updateItemSubmitForm(itemId);
|
||||
}
|
||||
|
|
|
@ -245,7 +245,7 @@ public class MultipleDilaogUpload extends DialogUpload {
|
|||
// HANDLE OWERWRITE
|
||||
if (Window
|
||||
.confirm(label
|
||||
+ " exists in folder. Overwrite?")) {
|
||||
+ " exists in folder. If you continue, a new version will be created")) {
|
||||
removeItemAndSubmitForm(itemId);
|
||||
updateItemSubmitForm(itemId);
|
||||
}
|
||||
|
|
|
@ -684,7 +684,7 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
|
|||
console.log("response overwrite: " + response);
|
||||
if(response!=null && response!=undefined){
|
||||
console.log("overwrite confirm?");
|
||||
if($wnd.confirm(files[i].name+" exists in folder. Overwrite?")){
|
||||
if($wnd.confirm(files[i].name+" exists in folder. If you continue, a new version will be created")){
|
||||
overwrite = true;
|
||||
console.log("overwrite confirmed!");
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue