Minor bug fixes.

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@122581 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-01-28 10:28:17 +00:00
parent 75fd148cea
commit d44e9a2bd5
1 changed files with 7 additions and 5 deletions

View File

@ -308,7 +308,7 @@ public class ShareUpdateForm extends Composite {
}
// check if an upload is happening
// check if an upload is already running
if(uploadProgress.isVisible()){
Window.alert(WAIT_CURRENT_UPLOAD_FINISHING);
@ -319,6 +319,7 @@ public class ShareUpdateForm extends Composite {
FileUpload up = uploadProgress.initialize();
up.setVisible(false);
uploadProgress.setVisible(true);
// open the fileupload
up.click();
}
@ -853,7 +854,8 @@ public class ShareUpdateForm extends Composite {
if(limitExceeded){
var msg = "Too much files attached!"
var msg = "Sorry, you are trying to attach more than " +
+ @org.gcube.portlets.user.shareupdates.client.view.ShareUpdateForm::MAX_NUMBER_ATTACHMENTS " files!"
instance.@org.gcube.portlets.user.shareupdates.client.view.ShareUpdateForm::showAlert(Ljava/lang/String;)(msg);
console.log(msg);
@ -932,7 +934,7 @@ public class ShareUpdateForm extends Composite {
}
}
// enable attach button (the checFile method will do this...)
// enable attach button (the checkFile method will do this...)
// alert the user that folder(s) can't be uploaded
if(numFolder > 0){
@ -1045,7 +1047,7 @@ public class ShareUpdateForm extends Composite {
shareTextArea.setText(previousText);
shareTextArea.setAlignment(TextAlignment.LEFT);
// rechange text color if needed
// change text color if needed
if(!previousText.equals(DROP_FILE_HERE_TEXT) && !previousText.equals(SHARE_UPDATE_TEXT))
shareTextArea.getElement().getStyle().setColor("#333");
@ -1103,7 +1105,7 @@ public class ShareUpdateForm extends Composite {
* Get the number of attached files (both uploaded and not).
* @return number of attached files
*/
public int numberOfAttachments(){
private int numberOfAttachments(){
return listOfAttachedFiles.size();