IDEMPIERE-522 Zk: Random Freeze of screen update. Modify process and form to only block the parent window instead of the whole browser.

This commit is contained in:
Heng Sin Low 2012-12-03 18:09:21 +08:00
parent 690d7bdb8f
commit f0f7900627
1 changed files with 5 additions and 1 deletions

View File

@ -2358,17 +2358,21 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
{
if(cf.isInitOK())
{
Clients.showBusy(getComponent(), " ");
final WCreateFromWindow window = (WCreateFromWindow) cf.getWindow();
window.setAttribute(Window.MODE_KEY, Window.MODE_HIGHLIGHTED);
window.setStyle("position: absolute");
window.addEventListener(DialogEvents.ON_WINDOW_CLOSE, new EventListener<Event>() {
@Override
public void onEvent(Event event) throws Exception {
Clients.clearBusy(getComponent());
if (!window.isCancel()) {
onRefresh(true, false);
}
}
});
getComponent().getParent().appendChild(window);
cf.showWindow();
LayoutUtils.openOverlappedWindow(getComponent(), window, "middle_center");
}
return;
}