diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index e6aa1832ddb..1be108c2b44 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -150,8 +150,8 @@ class Form
// Sanitize tooltip
$htmltext=str_replace("\\","\\\\",$htmltext);
- $htmltext=str_replace("'","\'",$htmltext);
- $htmltext=str_replace("'","\'",$htmltext);
+ //$htmltext=str_replace("'","\'",$htmltext);
+ //$htmltext=str_replace("'","\'",$htmltext);
$htmltext=str_replace("\r","",$htmltext);
$htmltext=str_replace("
\n","
",$htmltext);
$htmltext=str_replace("\n","",$htmltext);
@@ -159,6 +159,7 @@ class Form
if ($conf->use_javascript_ajax)
{
$htmltext=str_replace('"',""",$htmltext);
+ /*
if ($tooltipon==1 || $tooltipon==3)
{
$paramfortooltiptext.=' onmouseover="showtip(\''.$htmltext.'\')"';
@@ -169,6 +170,15 @@ class Form
$paramfortooltippicto.=' onmouseover="showtip(\''.$htmltext.'\')"';
$paramfortooltippicto.=' onMouseout="hidetip()"';
}
+ */
+ if ($tooltipon==1 || $tooltipon==3)
+ {
+ $paramfortooltiptext.=' title="'.$htmltext.'"';
+ }
+ if ($tooltipon==2 || $tooltipon==3)
+ {
+ $paramfortooltippicto.=' title="'.$htmltext.'"';
+ }
}
$s="";
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 0184642ae52..5e41a026aea 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -818,6 +818,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$jquerytheme = 'smoothness';
if (!empty($conf->global->MAIN_USE_JQUERY_THEME)) $jquerytheme = $conf->global->MAIN_USE_JQUERY_THEME;
print ''."\n";
+ print ''."\n";
}
print ''."\n";
@@ -954,7 +955,17 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
}
print "\n".''."\n";
- print '