added hide onClick
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@144286 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f87b0b84a3
commit
539b127d10
|
@ -229,11 +229,12 @@ public class VersioningInfoContainer extends LayoutContainer {
|
||||||
|
|
||||||
String msg = "Deleting all older versions of: <br/> - "+ currentVersion.getName()+"." +
|
String msg = "Deleting all older versions of: <br/> - "+ currentVersion.getName()+"." +
|
||||||
"<br/>Confirm?";
|
"<br/>Confirm?";
|
||||||
DialogConfirm box = new DialogConfirm(null, "Delete older versions of: "+ currentVersion.getName(), msg);
|
final DialogConfirm box = new DialogConfirm(null, "Delete older versions of: "+ currentVersion.getName(), msg);
|
||||||
box.getYesButton().addClickHandler(new ClickHandler() {
|
box.getYesButton().addClickHandler(new ClickHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(ClickEvent event) {
|
public void onClick(ClickEvent event) {
|
||||||
|
box.hide();
|
||||||
AppController.getEventBus().fireEvent(new FileVersioningEvent(WorkspaceVersioningOperation.DELETE_ALL_OLDER_VERSIONS, currentVersion, store.getModels(), windowVersioning));
|
AppController.getEventBus().fireEvent(new FileVersioningEvent(WorkspaceVersioningOperation.DELETE_ALL_OLDER_VERSIONS, currentVersion, store.getModels(), windowVersioning));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue