MediaWiki:JSScripts/RestaurationDeluxe
//
<nowiki> /* * Restauracion Deluxe * * Marcar/Desmarcar rapidament las casas per restaurar un article * * Autor : GôTô * Darrièra revision : 11 de mai de 2007 */ // Code :function UndeleteSelectAll() { if(wgCanonicalSpecialPageName != 'Undelete') return; var title2 = document.getElementsByTagName('h2'); var all = document.createElement('input'); all.setAttribute('type', 'checkbox'); all.setAttribute('onclick', 'SelectAllInputs(this.checked)'); all.setAttribute('title', 'Seleccionar/Deseleccionar totes'); title2[title2.length-1].appendChild(all); all.click(); } function SelectAllInputs(bool) { var inputs = document.getElementById('undelete').getElementsByTagName('input'); for (var cpt = 0 ; cpt < inputs.length ; cpt++) { inputs[cpt].checked = bool; } } addOnloadHook(UndeleteSelectAll); //