mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
Show full date hovering over timestamp
(imported from commit 486cd85b4ec21ad8468ced207c541372f341c200)
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
<span class="zephyr_sender_name">{{sender_name}}</span> <span class="zephyr_sender_email">{{sender_email}}</span>
|
<span class="zephyr_sender_name">{{sender_name}}</span> <span class="zephyr_sender_email">{{sender_email}}</span>
|
||||||
<span class="zephyr_sender_username">{{sender}}</span>
|
<span class="zephyr_sender_username">{{sender}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="zephyr_time">{{timestr}}</span>
|
<span class="zephyr_time" title="{{full_date_str}}">{{timestr}}</span>
|
||||||
<p class="zephyr_text">
|
<p class="zephyr_text">
|
||||||
{{{html_content}}}
|
{{{html_content}}}
|
||||||
</p></td>
|
</p></td>
|
||||||
|
|||||||
@@ -504,6 +504,7 @@ function add_message(index, zephyr) {
|
|||||||
var two_digits = function (x) { return ('0' + x).slice(-2); }
|
var two_digits = function (x) { return ('0' + x).slice(-2); }
|
||||||
zephyr.timestr = two_digits(time.getHours())
|
zephyr.timestr = two_digits(time.getHours())
|
||||||
+ ':' + two_digits(time.getMinutes());
|
+ ':' + two_digits(time.getMinutes());
|
||||||
|
zephyr.full_date_str = time.toLocaleString();
|
||||||
|
|
||||||
var new_tr = $('<tr />').attr('id', zephyr.id).addClass('zephyr_row');
|
var new_tr = $('<tr />').attr('id', zephyr.id).addClass('zephyr_row');
|
||||||
$('#table').append(new_tr);
|
$('#table').append(new_tr);
|
||||||
|
|||||||
Reference in New Issue
Block a user