mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02: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';
|
_type = _msg.match(/error/i) ? 'error' : 'success';
|
||||||
|
|
||||||
var framework = egw_getFramework();
|
var framework = egw_getFramework();
|
||||||
if (framework)
|
if (framework && (typeof framework.setMessage != 'undefined'))
|
||||||
{
|
{
|
||||||
framework.setMessage.call(window.framework, _msg, _type);
|
framework.setMessage.call(window.framework, _msg, _type);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user