Fixed onCloseHandler

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@128573 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-05-12 14:03:26 +00:00
parent 01a9f8277a
commit 4248c477c9
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ public class ShareUpdateForm extends Composite {
Window.addWindowClosingHandler(new Window.ClosingHandler() {
public void onWindowClosing(Window.ClosingEvent closingEvent) {
String currentText = shareTextArea.getText();
if(!currentText.isEmpty()){
if(!currentText.isEmpty() && !currentText.equals(SHARE_UPDATE_TEXT)){
closingEvent.setMessage("Do you really want to leave the page?");
}
}