open url in window instead of iframe since not all site work fine inside an iframe.

This commit is contained in:
Heng Sin Low 2013-03-28 17:45:20 +08:00
parent 7c275d569e
commit e4acef2dc4
1 changed files with 3 additions and 2 deletions

View File

@ -26,9 +26,10 @@ import org.adempiere.webui.theme.ThemeManager;
import org.adempiere.webui.window.FDialog;
import org.adempiere.webui.window.WFieldRecordInfo;
import org.compiere.model.GridField;
import org.compiere.util.Env;
import org.zkoss.zk.au.out.AuScript;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zk.ui.util.Clients;
public class WUrlEditor extends WEditor implements ContextMenuListener
{
@ -114,7 +115,7 @@ public class WUrlEditor extends WEditor implements ContextMenuListener
{
try
{
Env.startBrowser(urlString);
Clients.response(new AuScript("window.open('"+urlString+"');"));
return;
}
catch(Exception e)