mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-05 23:34:19 -04:00
parent
f125330fcf
commit
b78cbbcaa2
@ -1892,6 +1892,10 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
// Show exact time
|
// Show exact time
|
||||||
$('.time-since').each(function () {
|
$('.time-since').each(function () {
|
||||||
|
var time = new Date($(this).attr('title'))
|
||||||
|
if (!isNaN(time)){
|
||||||
|
$(this).attr('title', time.toLocaleString())
|
||||||
|
}
|
||||||
$(this).addClass('poping up').attr('data-content', $(this).attr('title')).attr('data-variation', 'inverted tiny').attr('title', '');
|
$(this).addClass('poping up').attr('data-content', $(this).attr('title')).attr('data-variation', 'inverted tiny').attr('title', '');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user