allow null as well as undefined for message-type-detection

This commit is contained in:
Ralf Becker 2014-05-26 15:39:21 +00:00
parent baf7e2e97a
commit ddc17e8e0d

View File

@ -65,7 +65,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
var framework = _wnd.framework; var framework = _wnd.framework;
var jQuery = _wnd.jQuery; var jQuery = _wnd.jQuery;
if (_msg && typeof _type == 'undefined') if (_msg && !_type)
{ {
if (typeof error_reg_exp == 'undefined') error_reg_exp = new RegExp('(error|'+egw.lang('error')+')', 'i'); if (typeof error_reg_exp == 'undefined') error_reg_exp = new RegExp('(error|'+egw.lang('error')+')', 'i');