Prevent errors if refresh message is undefined

This commit is contained in:
Nathan Gray 2013-08-20 15:59:16 +00:00
parent d9ee56bd79
commit f9ee897544

View File

@ -532,6 +532,10 @@ etemplate2.prototype.refresh = function(msg, app, id, type)
var msg_widget = this.widgetContainer.getWidgetById("msg");
if(msg_widget)
{
if(typeof msg != "string")
{
msg = "";
}
msg_widget.set_value(msg);
msg_widget.set_disabled(msg.trim().length == 0);