fix check/uncheck all.

svn path=/plone.app.discussion/trunk/; revision=27734
This commit is contained in:
Timo Stollenwerk 2009-06-29 20:44:20 +00:00
parent 3a9068f643
commit d3f9b90546

View File

@ -7,12 +7,14 @@ jq(document).ready(function() {
if(jq(this).val()==0){
jq(this).parents("table")
.find("input:checkbox")
.attr("checked","checked")
.attr("checked","checked");
jq(this).val("1");
}
else{
jq(this).parents("table")
.find("input:checkbox")
.attr("checked","")
.attr("checked","");
jq(this).val("0");
}
});