Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

fix display of torrent preview that didn't trigger

Cette révision appartient à :
kilo 2017-07-15 15:59:30 +02:00 révisé par GitHub
Parent b2c2bf6b25
révision 8c7050cc6b

Voir le fichier

@ -106,7 +106,7 @@
{{end}}
{{ block footer_js()}}
<script type="text/javascript">var Sukebei = {{ Sukebei }}; var UserTrusted = {{ User.IsTrusted() }};
document.getElementsByClassName("torrent-preview-table")[0].display = "block";
document.getElementsByClassName("torrent-preview-table")[0].style.display = "block";
document.getElementsByClassName("table-torrent-date")[0].innerText = new Date(Date.now()).toLocaleString(document.getElementsByTagName("html")[0].getAttribute("lang"), { year: "numeric", month: "short", day: "numeric" });
document.getElementsByClassName("form-torrent-category")[0].addEventListener("change", UpdatePreviewCategory);