Skip to content

Commit

Permalink
Add full description to title attribute in month view. See GitHub Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Nov 18, 2024
1 parent 3fe0cad commit 1952066
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/functions_table.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1807,8 +1807,13 @@ function month_room_table_innerhtml(string $view, int $view_all, int $year, int
$html .= "error: unknown parameter";
}
}
$title_text = $full_text;
if (isset($entry['description']) && ($entry['description'] !== ''))
{
$title_text .= "\n\n" . $entry['description'];
}
$html .= '<a href="' . htmlspecialchars($booking_link) . '"' .
' title="' . htmlspecialchars($full_text) . '">';
' title="' . htmlspecialchars($title_text) . '">';
$html .= htmlspecialchars($display_text) . '</a>';
$html .= "</div>\n";
}
Expand Down

1 comment on commit 1952066

@akramjannah
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you very much, it work

Please sign in to comment.