show all help messages as tooltip

This commit is contained in:
Roland Gruber 2009-02-15 10:15:29 +00:00
parent e445c3e829
commit 1a6f777a81
1 changed files with 2 additions and 4 deletions

View File

@ -889,10 +889,8 @@ function printHelpLink($entry, $number, $module='', $scope='') {
if (is_file("./help.php")) $helpPath = "";
$title = $entry['Headline'];
$message = $entry['Text'];
// if help message contains special characters then point to help page
if (!(strpos($message, '"') === false) || !(strpos($message, "'") === false) || !(strpos($message, "\n") === false)) {
$message = _('Please click on the icon to view the help page.');
}
// replace special characters
$message = str_replace(array("'", '"', "\n"), array("\\'", '"', ''), $message);
echo "<a href=\"" . $helpPath . "help.php?module=$module&amp;HelpNumber=". $number . "&amp;scope=" . $scope . "\" ";
echo "target=\"help\" ";
echo "onmouseover=\"Tip('" . $message . "', TITLE, '" . $title . "')\" onmouseout=\"UnTip()\">";