fixed help popups
This commit is contained in:
parent
8b4dc54340
commit
c86878e90f
|
@ -651,8 +651,10 @@ function printHelpLink($entry, $number, $module='', $scope='') {
|
|||
$message .= '<br><br><hr class="dotted">' . _('Technical name') . ': <i>' . $entry['attr'] . '</i>';
|
||||
}
|
||||
// replace special characters
|
||||
$message = str_replace(array("'", '"', "\n"), array("\\'", '"', ''), $message);
|
||||
$title = str_replace(array("'", '"', "\n"), array("\\'", '"', ''), $title);
|
||||
$message = preg_replace('/[\\\\]{2}/', '\\\\', $message);
|
||||
$title = preg_replace('/[\\\\]{2}/', '\\\\', $title);
|
||||
$message = str_replace(array('\\', "'", '"', "\n"), array('\\\\', "\\'", '"', ''), $message);
|
||||
$title = str_replace(array('\\', "'", '"', "\n"), array('\\\\', "\\'", '"', ''), $title);
|
||||
echo "<a class=\"margin2\" href=\"" . $helpPath . "help.php?module=$module&HelpNumber=". $number . "&scope=" . $scope . "\" ";
|
||||
echo "target=\"help\" ";
|
||||
echo "onmouseover=\"Tip('" . $message . "', TITLE, '" . $title . "')\" onmouseout=\"UnTip()\">";
|
||||
|
|
Loading…
Reference in New Issue