Fix main.js (#1352)
* Update main.js * Update main.js * Update main.js * Update main.js
Cette révision appartient à :
Parent
e0068456e7
révision
ab9e3906e2
1 fichiers modifiés avec 4 ajouts et 4 suppressions
|
@ -53,16 +53,16 @@ function parseAllDates() {
|
|||
|
||||
var list = document.getElementsByClassName("date-full")
|
||||
for (var i in list) {
|
||||
if(list.length == 0)
|
||||
break;
|
||||
var e = list[i]
|
||||
var dateDifference = dateDiff(new Date(e.innerText), new Date())
|
||||
|
||||
if(e.className.includes("scrape-date"))
|
||||
e.title = ((dateDifference.d * 24) + dateDifference.h) + " hours " + dateDifference.m + " minutes ago" +
|
||||
//e.title = T.r("torrent_age2", dateDifference.h, dateDifference.m)
|
||||
if(e.className != undefined && e.className.includes("scrape-date"))
|
||||
e.title = ((dateDifference.d * 24) + dateDifference.h) + " hours " + dateDifference.m + " minutes ago"
|
||||
else
|
||||
e.title = dateDifference.d + " days " + dateDifference.h + " hours ago"
|
||||
|
||||
//e.title = T.r("torrent_age", dateDifference.d, dateDifference.h)
|
||||
e.innerText = new Date(e.innerText).toLocaleString(lang)
|
||||
}
|
||||
}
|
||||
|
|
Référencer dans un nouveau ticket