Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

change value to .checked

Cette révision appartient à :
kilo 2017-07-14 23:24:12 +02:00 révisé par GitHub
Parent ea795dcca7
révision 0dcb9e3c5d

Voir le fichier

@ -7,12 +7,12 @@ document.getElementsByClassName("form-torrent-category")[0].onchange = function(
};
document.getElementsByClassName("form-torrent-remake")[0].onchange = function(){
document.getElementsByClassName("table-torrent-thead")[0].className = "torrent-info table-torrent-thead" + (UserTrusted ? " trusted : "") + (document.getElementsByClassName("form-torrent-remake")[0].value == "on" ? " remake" : "");
document.getElementsByClassName("table-torrent-thead")[0].className = "torrent-info table-torrent-thead" + (UserTrusted ? " trusted : "") + (document.getElementsByClassName("form-torrent-remake")[0].checked ? " remake" : "");
};
document.getElementsByClassName("form-torrent-hidden")[0].onchange = function(){
document.getElementsByClassName("table-torrent-thead")[0].className = "torrent-info table-torrent-thead" + (document.getElementsByClassName("form-torrent-remake")[0].value == "on" ? " remake" : "");
if(UserTrusted && document.getElementsByClassName("form-torrent-hidden")[0].value == "off")
document.getElementsByClassName("table-torrent-thead")[0].className = "torrent-info table-torrent-thead" + (document.getElementsByClassName("form-torrent-remake")[0].checked ? " remake" : "");
if(UserTrusted && !document.getElementsByClassName("form-torrent-hidden")[0].checked)
document.getElementsByClassName("table-torrent-thead")[0].className = document.getElementsByClassName("table-torrent-thead")[0].className + " trusted";
};