From f0f79006271cf50395808995f52e059769c336b0 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 3 Dec 2012 18:09:21 +0800 Subject: [PATCH] IDEMPIERE-522 Zk: Random Freeze of screen update. Modify process and form to only block the parent window instead of the whole browser. --- .../adempiere/webui/adwindow/AbstractADWindowContent.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index ba9b61b5a6..698f0e2c58 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -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() { @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; }