Show full date hovering over timestamp

(imported from commit 486cd85b4ec21ad8468ced207c541372f341c200)
This commit is contained in:
Keegan McAllister
2012-09-13 01:00:28 -04:00
parent 96abc04fe6
commit 51e109d043
2 changed files with 2 additions and 1 deletions

View File

@@ -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>

View File

@@ -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);