mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:34 +01:00
test if the required method is available on framework
This commit is contained in:
parent
025d20f2d1
commit
43d73abbcd
@ -277,7 +277,7 @@ function egw_message(_msg, _type)
|
||||
_type = _msg.match(/error/i) ? 'error' : 'success';
|
||||
|
||||
var framework = egw_getFramework();
|
||||
if (framework)
|
||||
if (framework && (typeof framework.setMessage != 'undefined'))
|
||||
{
|
||||
framework.setMessage.call(window.framework, _msg, _type);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user