tazpanel view lib/checkbox.js @ rev 56

Add a file view CASE so we can displa any file on the system (ex at boot.cgi with rcS.conf)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 10 20:20:19 2011 +0200 (2011-04-10)
parents 4c1174a446ee
children
line source
1 javascript:(function() {
2 function checkBoxes(w) {
3 try {
4 var inputs = w.document.getElementsByTagName('input');
5 for (var i = 0; i < inputs.length; i++) {
6 if (inputs[i].type && inputs[i].type == 'checkbox') {
7 inputs[i].checked = !inputs[i].checked;
8 }
9 }
10 } catch (e){}
11 if (w.frames && w.frames.length>0) {
12 for (var i = 0; i < w.frames.length;i++) {
13 var fr = w.frames[i];
14 checkFrames(fr);
15 }
16 }
17 }
18 checkBoxes(window);
19 })()