Mercurial > hg > soundsoftware-site
diff public/javascripts/application.js @ 38:33d69fee1d99 cannam
* Merge SVN update from default branch
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:41:40 +0000 |
parents | 94944d00e43c |
children | af80e5618e9b 7eb2194ee428 |
line wrap: on
line diff
--- a/public/javascripts/application.js Fri Oct 01 15:33:14 2010 +0100 +++ b/public/javascripts/application.js Fri Nov 19 13:41:40 2010 +0000 @@ -17,6 +17,13 @@ for (i = 0; i < boxes.length; i++) { boxes[i].checked = !all_checked; } } +function setCheckboxesBySelector(checked, selector) { + var boxes = $$(selector); + boxes.each(function(ele) { + ele.checked = checked; + }); +} + function showAndScrollTo(id, focus) { Element.show(id); if (focus!=null) { Form.Element.focus(focus); } @@ -56,7 +63,6 @@ dLabel.addClassName('inline'); // Pulls the languge value used for Optional Description dLabel.update($('attachment_description_label_content').innerHTML) - p = document.getElementById("attachments_fields"); p.appendChild(document.createElement("br")); p.appendChild(f);