Call framework specific window opener if it is on mobile framework

This commit is contained in:
Hadi Nategh 2014-11-26 16:58:03 +00:00
parent cfaae06d37
commit 23d4e045f3

View File

@ -280,7 +280,14 @@ 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();
var popup_window = _wnd.egw_openWindowCentered2(url, _target || '_blank', w_h[0], w_h[1], false, _target_app, true);
if (_wnd.framework && egwIsMobile())
{
var popup_window = _wnd.framework.egw_openWindowCentered2(url, _target || '_blank', w_h[0], w_h[1], false, _target_app, true, _wnd);
}
else
{
var popup_window = _wnd.egw_openWindowCentered2(url, _target || '_blank', w_h[0], w_h[1], false, _target_app, true);
}
// Remember which windows are open
egw().storeWindow(_target_app, popup_window);