From 3041e38b38863a1a9537981995b1a4ce1493be5d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 3 Dec 2012 17:40:13 -0500 Subject: [PATCH] IDEMPIERE-511 Filename button on Initial Client Setup (maybe other processes) does not work --- .../WEB-INF/src/org/adempiere/webui/editor/WFilenameEditor.java | 1 + .../WEB-INF/src/org/adempiere/webui/panel/WAttachment.java | 1 + 2 files changed, 2 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WFilenameEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WFilenameEditor.java index ce66b709f5..ca4d3bbf33 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WFilenameEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WFilenameEditor.java @@ -49,6 +49,7 @@ public class WFilenameEditor extends WEditor getComponent().setButtonImage("/images/Open16.png"); getComponent().addEventListener(Events.ON_UPLOAD, this); getComponent().getButton().setUpload("true,native"); + getComponent().getButton().setAttribute("org.zkoss.zul.image.preload", Boolean.TRUE); } @Override diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java index 5fa8a3008a..7d59295011 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java @@ -250,6 +250,7 @@ public class WAttachment extends Window implements EventListener bSave.addEventListener(Events.ON_CLICK, this); bLoad.setImage("/images/Import24.png"); + bLoad.setAttribute("org.zkoss.zul.image.preload", Boolean.TRUE); bLoad.setTooltiptext(Msg.getMsg(Env.getCtx(), "Load")); bLoad.setUpload("true"); bLoad.addEventListener(Events.ON_UPLOAD, this);