2
0
forked from Wavyzz/dolibarr

Better behavior for tooltip on click

This commit is contained in:
Laurent Destailleur
2017-05-04 13:09:42 +02:00
parent c7d736376f
commit 7d5b5cf86a
2 changed files with 7 additions and 5 deletions

View File

@@ -492,10 +492,11 @@ class Form
*/
function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0, $notabs = 2, $tooltiptrigger='')
{
global $conf;
global $conf, $langs;
$alt = '';
if ($tooltiptrigger) $alt=$langs->trans("ClickToShowHelp");
//For backwards compatibility
if ($type == '0') $type = 'info';
elseif ($type == '1') $type = 'help';