change value to .checked
Cette révision appartient à :
Parent
ea795dcca7
révision
0dcb9e3c5d
1 fichiers modifiés avec 3 ajouts et 3 suppressions
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
Référencer dans un nouveau ticket