forked from extern/egroupware
Handle, infolog->add link in sidebox menu via app.js, instead of using inline script on infolog_hook
This commit is contained in:
parent
5517a29d47
commit
019db13e33
@ -98,9 +98,7 @@ class infolog_hooks
|
||||
$file = array(
|
||||
'infolog list' => egw::link('/index.php',array(
|
||||
'menuaction' => 'infolog.infolog_ui.index' )),
|
||||
'Add' => "javascript:egw_openWindowCentered2('".egw::link('/index.php',array(
|
||||
'menuaction' => 'infolog.infolog_ui.edit',
|
||||
),false)."','_blank',750,410,'yes');",
|
||||
'Add' => "javascript:app.infolog.add_from_hook()",
|
||||
);
|
||||
display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file);
|
||||
}
|
||||
|
@ -274,4 +274,12 @@ app.infolog = AppJS.extend(
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
add_link_sidemenu: function()
|
||||
{
|
||||
egw_openWindowCentered2(egw().link('/index.php?menuaction=infolog.infolog_ui.edit',false),'_blank',750,410,'yes');
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user