From 3cc23af0fea466660fd04dbfb0cc89c20629ca00 Mon Sep 17 00:00:00 2001 From: Anozi Mada Date: Thu, 10 Mar 2022 20:28:27 +0700 Subject: [PATCH] IDEMPIERE-5218 Add notification for visual feedback (#1240) --- .../WEB-INF/src/org/adempiere/webui/window/WRecordInfo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordInfo.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordInfo.java index 101694529a..42ed2272ce 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordInfo.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordInfo.java @@ -60,6 +60,7 @@ import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.util.Clients; +import org.zkoss.zk.ui.util.Notification; import org.zkoss.zul.Borderlayout; import org.zkoss.zul.Center; import org.zkoss.zul.Div; @@ -353,6 +354,7 @@ public class WRecordInfo extends Window implements EventListener .append(ticketURL) .append("\");"); Clients.evalJavaScript(sb.toString()); + Notification.show(Msg.getMsg(Env.getCtx(), "Copied"), Notification.TYPE_INFO, m_permalink, "end_before", 1000); } }); } @@ -365,6 +367,7 @@ public class WRecordInfo extends Window implements EventListener .append(po.get_WhereClause(true)); query.append("\");"); Clients.evalJavaScript(query.toString()); + Notification.show(Msg.getMsg(Env.getCtx(), "Copied"), Notification.TYPE_INFO, m_copySelect, "end_before", 1000); } }); m_copySelect.setVisible(true);