From 63b391a3494facf05606dae1d6017791c82d33c0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 22 Oct 2010 08:24:08 +0000 Subject: [PATCH] New: use jQuery tooltip --- htdocs/core/class/html.form.class.php | 32 +++++---------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 029ace0b3b6..6b4fb6e7984 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -145,8 +145,7 @@ class Form if (! $htmltext) return $text; - $paramfortooltiptext =''; - $paramfortooltippicto =''; + $paramfortooltip =''; // Sanitize tooltip $htmltext=str_replace("\\","\\\\",$htmltext); @@ -159,26 +158,7 @@ class Form if ($conf->use_javascript_ajax) { $htmltext=str_replace('"',""",$htmltext); - /* - if ($tooltipon==1 || $tooltipon==3) - { - $paramfortooltiptext.=' onmouseover="showtip(\''.$htmltext.'\')"'; - $paramfortooltiptext.=' onMouseout="hidetip()"'; - } - if ($tooltipon==2 || $tooltipon==3) - { - $paramfortooltippicto.=' onmouseover="showtip(\''.$htmltext.'\')"'; - $paramfortooltippicto.=' onMouseout="hidetip()"'; - } - */ - if ($tooltipon==1 || $tooltipon==3) - { - $paramfortooltiptext.=' title="'.$htmltext.'"'; - } - if ($tooltipon==2 || $tooltipon==3) - { - $paramfortooltippicto.=' title="'.$htmltext.'"'; - } + $paramfortooltip.=' title="'.$htmltext.'"'; } $s=""; @@ -187,18 +167,18 @@ class Form { if ($text != '') { - $s.=''.$text; + $s.=''.$text; if ($direction) $s.=' '; $s.=''; } - if ($direction) $s.=''.$img.''; + if ($direction) $s.=''.$img.''; } else { - if ($direction) $s.=''.$img.''; + if ($direction) $s.=''.$img.''; if ($text != '') { - $s.=''; + $s.=''; if ($direction) $s.=' '; $s.=$text.''; }