fixed not working imagemap (clickable milestones and bars in ganttchart) for firefox3 and ie, thanks to ae275-at-CAM.AC.UK from the English user list

This commit is contained in:
Ralf Becker 2008-06-30 14:35:51 +00:00
parent 7921ef5767
commit b17df8df9b

View File

@ -1507,7 +1507,7 @@ class etemplate extends boetemplate
list($extra_link,$extra_link_target,$imagemap,$extra_link_popup,$id) = explode(',',$cell['size']);
}
$html .= html::image($app,$img,strlen($label) > 1 && !$cell['no_lang'] ? lang($label) : $label,
'border="0"'.($imagemap?' usemap="'.html::htmlspecialchars($imagemap).'"':'').
'border="0"'.($imagemap?' usemap="#'.html::htmlspecialchars($imagemap).'"':'').
($id || $value ? ' id="'.($id ? $id : $name).'"' : ''));
$extra_label = False;
break;