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:
parent
01a9f8277a
commit
4248c477c9
|
@ -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?");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue