Fix tooltip on action agenda
This commit is contained in:
parent
6c31148a6c
commit
51f0beae0c
1 changed files with 2 additions and 3 deletions
|
|
@ -1729,7 +1729,7 @@ class ActionComm extends CommonObject
|
|||
}
|
||||
if (!empty($this->note_private)) {
|
||||
$tooltip .= '<br><br><b>'.$langs->trans('Description').':</b><br>';
|
||||
$texttoshow = dolGetFirstLineOfText($this->note_private, 10); // Try to limit length of content
|
||||
$texttoshow = dolGetFirstLineOfText($this->note_private, 8); // Try to limit length of content
|
||||
$tooltip .= '<div class="tenlinesmax">'; // Restrict height of content into the tooltip
|
||||
$tooltip .= (dol_textishtml($texttoshow) ? str_replace(array("\r", "\n"), "", $texttoshow) : str_replace(array("\r", "\n"), '<br>', $texttoshow));
|
||||
$tooltip .= '</div>';
|
||||
|
|
@ -1750,13 +1750,12 @@ class ActionComm extends CommonObject
|
|||
}
|
||||
//if (!empty($conf->global->AGENDA_USE_EVENT_TYPE) && $this->type_color)
|
||||
// $linkclose = ' style="background-color:#'.$this->type_color.'"';
|
||||
|
||||
if (empty($notooltip)) {
|
||||
if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
||||
$label = $langs->trans("ShowAction");
|
||||
$linkclose .= ' alt="'.dol_escape_htmltag($tooltip, 1).'"';
|
||||
}
|
||||
$linkclose .= ($label ? ' title="'.dol_escape_htmltag($label, 1).'"' : ' title="tocomplete"');
|
||||
$linkclose .= ($tooltip ? ' title="'.dol_escape_htmltag($tooltip, 1).'"' : ' title="tocomplete"');
|
||||
$linkclose .= $dataparams.' class="'.$classname.' '.$classfortooltip.'"';
|
||||
} else {
|
||||
$linkclose .= ' class="'.$classname.'"';
|
||||
|
|
|
|||
Loading…
Reference in a new issue