IDEMPIERE-5218 Add notification for visual feedback (#1240)

This commit is contained in:
Anozi Mada 2022-03-10 20:28:27 +07:00 committed by GitHub
parent 1f9141353c
commit 3cc23af0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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<Event>
.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<Event>
.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);