also switching to "internal" popups for mobile theme

This commit is contained in:
Ralf Becker 2014-11-26 17:06:46 +00:00
parent 23d4e045f3
commit 076b928d39

View File

@ -280,7 +280,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
{
var w_h = _popup.split('x');
if (w_h[1] == 'availHeight') w_h[1] = this.availHeight();
if (_wnd.framework && egwIsMobile())
if (_wnd.framework && (egwIsMobile() || egw.preference('theme') == 'mobile'))
{
var popup_window = _wnd.framework.egw_openWindowCentered2(url, _target || '_blank', w_h[0], w_h[1], false, _target_app, true, _wnd);
}