From 9bfc082843be04dd9a57c825b90d8f96b3d4cc6d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 10 Feb 2014 11:49:27 +0000 Subject: [PATCH] fix not opening infolog popup --- phpgwapi/js/jsapi/egw_message.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/jsapi/egw_message.js b/phpgwapi/js/jsapi/egw_message.js index 74169b8b08..e4aecc00ec 100644 --- a/phpgwapi/js/jsapi/egw_message.js +++ b/phpgwapi/js/jsapi/egw_message.js @@ -121,7 +121,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd) */ app_name: function() { - return !this.is_popup() && _wnd.framework ? _wnd.framework.activeApp.appName : _wnd.egw_appName; + return !this.is_popup() && _wnd.framework && _wnd.framework.activeApp ? _wnd.framework.activeApp.appName : _wnd.egw_appName; }, /** @@ -132,7 +132,8 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd) */ app_header: function(_header,_app) { - if (!this.is_popup() && _wnd.framework) // not for popups and only for framed templates + // not for popups and only for framed templates + if (!this.is_popup() && _wnd.framework && _wnd.framework.setWebsiteTitle) { var app = _app || this.app_name(); var title = _wnd.document.title.replace(/[.*]$/, '['+_header+']');