show all help messages as tooltip
This commit is contained in:
		
							parent
							
								
									e445c3e829
								
							
						
					
					
						commit
						1a6f777a81
					
				| 
						 | 
					@ -889,10 +889,8 @@ function printHelpLink($entry, $number, $module='', $scope='') {
 | 
				
			||||||
	if (is_file("./help.php")) $helpPath = "";
 | 
						if (is_file("./help.php")) $helpPath = "";
 | 
				
			||||||
	$title = $entry['Headline'];
 | 
						$title = $entry['Headline'];
 | 
				
			||||||
	$message = $entry['Text'];
 | 
						$message = $entry['Text'];
 | 
				
			||||||
	// if help message contains special characters then point to help page
 | 
						// replace special characters
 | 
				
			||||||
	if (!(strpos($message, '"') === false) || !(strpos($message, "'") === false) || !(strpos($message, "\n") === false)) {
 | 
						$message = str_replace(array("'", '"', "\n"), array("\\'", '"', ''), $message);
 | 
				
			||||||
		$message = _('Please click on the icon to view the help page.');
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	echo "<a href=\"" . $helpPath . "help.php?module=$module&HelpNumber=". $number . "&scope=" . $scope . "\" ";
 | 
						echo "<a href=\"" . $helpPath . "help.php?module=$module&HelpNumber=". $number . "&scope=" . $scope . "\" ";
 | 
				
			||||||
		echo "target=\"help\" ";
 | 
							echo "target=\"help\" ";
 | 
				
			||||||
		echo "onmouseover=\"Tip('" . $message . "', TITLE, '" . $title . "')\" onmouseout=\"UnTip()\">";
 | 
							echo "onmouseover=\"Tip('" . $message . "', TITLE, '" . $title . "')\" onmouseout=\"UnTip()\">";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue