fixing quick add to work with jDots

This commit is contained in:
Ralf Becker 2010-06-07 14:44:38 +00:00
parent d53e5291ce
commit 8f86299005

View File

@ -449,11 +449,11 @@ abstract class egw_framework
if (($popup = egw_link::is_popup($app,'add'))) if (($popup = egw_link::is_popup($app,'add')))
{ {
list($w,$h) = explode('x',$popup); list($w,$h) = explode('x',$popup);
$action = "window.open('$link','_blank','width='+$w+',height='+$h+',location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes');"; $action = "egw_openWindowCentered2('$link','_blank',$w,$h,'yes','$app');";
} }
else else
{ {
$action = "location.href = '$link';"; $action = "egw_link_handler('$link','$app');";
} }
$options[$action] = $label; $options[$action] = $label;
} }