mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
allow to call a function instead of a static helptext
This commit is contained in:
parent
725f59cfda
commit
fa435de6a9
@ -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