IDEMPIERE-997 Error panel impossible to remove
This commit is contained in:
parent
bdb7b868ef
commit
4ddd82c2e0
|
@ -460,8 +460,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
||||||
Boolean error = (Boolean) messageContainer.getAttribute(STATUS_ERROR_ATTRIBUTE);
|
Boolean error = (Boolean) messageContainer.getAttribute(STATUS_ERROR_ATTRIBUTE);
|
||||||
String status = (String) messageContainer.getAttribute(STATUS_TEXT_ATTRIBUTE);
|
String status = (String) messageContainer.getAttribute(STATUS_TEXT_ATTRIBUTE);
|
||||||
|
|
||||||
createPopupContent(status);
|
showPopup(error, status);
|
||||||
showPopup(error, messageContainer);
|
|
||||||
} else if (event.getName().equals(ADTabpanel.ON_DYNAMIC_DISPLAY_EVENT)) {
|
} else if (event.getName().equals(ADTabpanel.ON_DYNAMIC_DISPLAY_EVENT)) {
|
||||||
if (LayoutUtils.isReallyVisible(this))
|
if (LayoutUtils.isReallyVisible(this))
|
||||||
updateProcessToolbar();
|
updateProcessToolbar();
|
||||||
|
@ -483,8 +482,8 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
||||||
msgPopupCnt.appendChild(t);
|
msgPopupCnt.appendChild(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showPopup(boolean error, Component messageContainer) {
|
private void showPopup(boolean error, String msg) {
|
||||||
LayoutUtils.openOverlappedWindow(messageContainer, msgPopup, "overlap_end");
|
Clients.showNotification(buildNotificationText(msg), "error", findTabpanel(this), "at_pointer", 3500, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createPopup() {
|
private void createPopup() {
|
||||||
|
|
Loading…
Reference in New Issue