mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
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