mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FIX: uses tooltip to display local dates previews
This commit is contained in:
parent
95db5f0c8c
commit
7285e7fbba
2 changed files with 6 additions and 1 deletions
|
@ -46,9 +46,12 @@
|
|||
html += relativeTime.replace("TZ", _formatTimezone(moment.tz.guess()).join(": "));
|
||||
html += "</span>";
|
||||
|
||||
var joinedPreviews = previews.join("\n");
|
||||
|
||||
$element
|
||||
.html(html)
|
||||
.attr("title", previews.join("\n"))
|
||||
.attr("title", joinedPreviews)
|
||||
.attr("data-tooltip", joinedPreviews)
|
||||
.addClass("cooked");
|
||||
|
||||
if (repeat) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue