fix for add in sidebox menu was not opening a popup

This commit is contained in:
Ralf Becker 2005-11-18 16:12:29 +00:00
parent e5047dcd9c
commit e43a0ddf3f

View File

@ -33,8 +33,12 @@ class admin_prefs_sidebox_hooks
$file = array(
'infolog list' => $GLOBALS['egw']->link('/index.php',array(
'menuaction' => 'infolog.uiinfolog.index' )),
'add' => $GLOBALS['egw']->link('/index.php',array(
'menuaction' => 'infolog.uiinfolog.edit' ))
array(
'text' => '<a class="textSidebox" href="'.htmlspecialchars($GLOBALS['egw']->link('/index.php',array(
'menuaction' => 'infolog.uiinfolog.edit',
))).'" target="_blank" onclick="window.open(this.href,this.target,\'dependent=yes,width=750,height=550,scrollbars=yes,status=yes\'); return false;">'.lang('Add').'</a>',
'no_lang' => true,
)
);
display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file);
}