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 = "";
 | 
			
		||||
	$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&HelpNumber=". $number . "&scope=" . $scope . "\" ";
 | 
			
		||||
		echo "target=\"help\" ";
 | 
			
		||||
		echo "onmouseover=\"Tip('" . $message . "', TITLE, '" . $title . "')\" onmouseout=\"UnTip()\">";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue