mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
allow to call a function instead of a static helptext
This commit is contained in:
parent
cdee7ad7f4
commit
8d4bd41736
@ -1177,7 +1177,11 @@ class etemplate extends boetemplate
|
||||
{
|
||||
$help = lang($help);
|
||||
}
|
||||
if (($use_tooltip_for_help = strpos($help,'<') !== false && strip_tags($help) != $help)) // helptext is html => use a tooltip
|
||||
if (substr($help,0,5) == 'call:')
|
||||
{
|
||||
$options .= ' onMouseOver="'.html::htmlspecialchars(substr($help,5)).'"';
|
||||
}
|
||||
elseif (($use_tooltip_for_help = strpos($help,'<') !== false && strip_tags($help) != $help)) // helptext is html => use a tooltip
|
||||
{
|
||||
$options .= html::tooltip($help);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user