diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-12-27 22:21:32 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-12-27 22:21:32 +0100 |
commit | 666bb3919c31fa53760bf5470ba34062f9294d09 (patch) | |
tree | 8ac2ff1b14812cc12a53c91fb5c94d69f487a10a /public/css/forms.js | |
parent | 8c1f9e7057c0687351b552b54d44616d6f25b3e6 (diff) | |
parent | 037f19a137cec99a1ba14c138b5cf97e425767f0 (diff) |
Merge branch 'master' of https://vcs.wybt.net/engelsystem/git
Diffstat (limited to 'public/css/forms.js')
-rw-r--r-- | public/css/forms.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/public/css/forms.js b/public/css/forms.js new file mode 100644 index 00000000..8a6e2c69 --- /dev/null +++ b/public/css/forms.js @@ -0,0 +1,17 @@ +function check_all(id) { + var obj = document.getElementById(id); + var boxes = obj.getElementsByTagName("input"); + for(var i = 0; i < boxes.length; i++) { + if(boxes[i].type == "checkbox") + boxes[i].checked = true; + } +} + +function uncheck_all(id) { + var obj = document.getElementById(id); + var boxes = obj.getElementsByTagName("input"); + for(var i = 0; i < boxes.length; i++) { + if(boxes[i].type == "checkbox") + boxes[i].checked = false; + } +} |