IDEMPIERE-534 Lookup dialog disappears if navigate to another tab

This commit is contained in:
Heng Sin Low 2012-12-20 14:46:08 +08:00
parent dfee18776a
commit 42be0bf8c6
1 changed files with 4 additions and 1 deletions

View File

@ -1571,6 +1571,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
findWindow.addEventListener(DialogEvents.ON_WINDOW_CLOSE, new EventListener<Event>() {
@Override
public void onEvent(Event event) throws Exception {
Clients.clearBusy(getComponent());
if (!findWindow.isCancel())
{
MQuery query = findWindow.getQuery();
@ -1597,7 +1598,9 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
});
}
findWindow.setTitle(null);
LayoutUtils.openPopupWindow(toolbar, findWindow, "after_start");
getComponent().getParent().appendChild(findWindow);
Clients.showBusy(getComponent(), " ");
LayoutUtils.openOverlappedWindow(toolbar, findWindow, "after_start");
}
/**