tazpanel view lib/checkbox.js @ rev 167
libtazpanel: align *any* status
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 22 14:57:12 2011 +0200 (2011-04-22) |
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 })()