var label = new qx.ui.basic.Label('<div class="messages"><div class="'+wrapper.className+'">'+wrapper.innerHTML.replace(",","<br/>")+'</div></div>'); \r
label.setRich(true);\r
if(entry.level == "error"){\r
- var alert = new org.argeo.ria.components.Modal("Error");\r
- alert.addContent(label.clone()); \r
- alert.attachAndShow();\r
+ if(!this.alert){\r
+ this.alert = new org.argeo.ria.components.Modal("Error");\r
+ this.alert.setPersistent(true);\r
+ this.alert.addCloseButton();\r
+ }\r
+ this.alert.addCenter(label.clone()); \r
+ this.alert.attachAndShow();\r
}else if(entry.level == "info"){\r
this.showLogAsPopup(label.clone());\r
}\r
this.center();\r
},\r
\r
+ /**\r
+ * Show a given info log in a small popup right-top aligned. \r
+ * The popup will disappear after 5 seconds.\r
+ * @param content {qx.ui.basic.Label} The content of the popup to display \r
+ */\r
showLogAsPopup:function(content){\r
if(!this.popup){\r
this.popup = new qx.ui.popup.Popup(new qx.ui.layout.Canvas()).set({\r