Sfoglia il codice sorgente

Show locale string on timestamp (#6324)

Resolve #6004
tags/v1.9.0-rc1
NateScarlet 5 anni fa
parent
commit
b78cbbcaa2
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      public/js/index.js

+ 4
- 0
public/js/index.js Vedi File

@@ -1892,6 +1892,10 @@ $(document).ready(function () {

// Show exact time
$('.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', '');
});


Loading…
Annulla
Salva