diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 62f6d31acd7..27422180287 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -140,7 +140,7 @@ class Form * @return string Code html du tooltip (texte+picto) * @see Use function textwithpicto if you can. */ - function textwithtooltip($text,$htmltext,$tooltipon=1,$direction=0,$img='') + function textwithtooltip($text,$htmltext,$tooltipon=1,$direction=0,$img='',$extracss='') { global $conf; @@ -157,7 +157,8 @@ class Form $htmltext=str_replace("\n","",$htmltext); $htmltext=str_replace('"',""",$htmltext); - $paramfortooltip.=' class="classfortooltip" title="'.$htmltext.'"'; // Attribut to put on td tag to store tooltip + $extracss = (!empty($extracss) ? ' '.$extracss : ''); + $paramfortooltip.=' class="classfortooltip'.$extracss.'" title="'.$htmltext.'"'; // Attribut to put on td tag to store tooltip $s=""; $s.='