mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-18 16:06:53 +02:00
Allow app.appcode.function(); calls in sidebox in addition to global functions. Needs the (); at the end though.
This commit is contained in:
parent
9643d31dd1
commit
a97ca723d3
@ -98,7 +98,7 @@ class infolog_hooks
|
|||||||
$file = array(
|
$file = array(
|
||||||
'infolog list' => egw::link('/index.php',array(
|
'infolog list' => egw::link('/index.php',array(
|
||||||
'menuaction' => 'infolog.infolog_ui.index' )),
|
'menuaction' => 'infolog.infolog_ui.index' )),
|
||||||
'Add' => "javascript:app.infolog.add_link_sidemenu()",
|
'Add' => "javascript:app.infolog.add_link_sidemenu();",
|
||||||
);
|
);
|
||||||
display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file);
|
display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file);
|
||||||
}
|
}
|
||||||
|
@ -69,6 +69,10 @@
|
|||||||
if (matches.length > 1 && matches[2] !== undefined) args = JSON.parse('['+matches[2].replace(/'/g,'"')+']');
|
if (matches.length > 1 && matches[2] !== undefined) args = JSON.parse('['+matches[2].replace(/'/g,'"')+']');
|
||||||
window[matches[1]].apply(window.framework, args);
|
window[matches[1]].apply(window.framework, args);
|
||||||
}
|
}
|
||||||
|
else if (matches && matches[1].indexOf('app.') == 0)
|
||||||
|
{
|
||||||
|
return et2_call(matches[1],matches[2]);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Do NOT know how to execute '+this.href);
|
alert('Do NOT know how to execute '+this.href);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user