From 43d73abbcdc6a7cc711153f14e8b3cee18c45c5e Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 10 Oct 2013 15:38:18 +0000 Subject: [PATCH] test if the required method is available on framework --- phpgwapi/js/jsapi/jsapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/jsapi.js b/phpgwapi/js/jsapi/jsapi.js index 69ef07c780..8ddfc8b89c 100644 --- a/phpgwapi/js/jsapi/jsapi.js +++ b/phpgwapi/js/jsapi/jsapi.js @@ -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;