Merge pull request #4054 from marcosgdf/bug-3508
FIX #3508 Useless tooltip in 3.8 boxes
This commit is contained in:
commit
dc6496fdf3
@ -287,7 +287,10 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty"
|
|||||||
// Url
|
// Url
|
||||||
if (! empty($contents[$i][$j]['url']) && empty($contents[$i][$j]['logo']))
|
if (! empty($contents[$i][$j]['url']) && empty($contents[$i][$j]['logo']))
|
||||||
{
|
{
|
||||||
$out.= '<a href="'.$contents[$i][$j]['url'].'" title="'.dol_escape_htmltag($langs->trans("Show").' '.$tooltip, 1).'" class="classfortooltip"';
|
$out.= '<a href="'.$contents[$i][$j]['url'].'"';
|
||||||
|
if (!empty($tooltip)) {
|
||||||
|
$out .= ' title="'.dol_escape_htmltag($langs->trans("Show").' '.$tooltip, 1).'" class="classfortooltip"';
|
||||||
|
}
|
||||||
//$out.= ' alt="'.$textwithnotags.'"'; // Pas de alt sur un "<a href>"
|
//$out.= ' alt="'.$textwithnotags.'"'; // Pas de alt sur un "<a href>"
|
||||||
$out.= isset($contents[$i][$j]['target'])?' target="'.$contents[$i][$j]['target'].'"':'';
|
$out.= isset($contents[$i][$j]['target'])?' target="'.$contents[$i][$j]['target'].'"':'';
|
||||||
$out.= '>';
|
$out.= '>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user