add "select all" JS to select all comments in the moderate comments view.

svn path=/plone.app.discussion/trunk/; revision=27714
This commit is contained in:
Timo Stollenwerk
2009-06-29 09:54:53 +00:00
parent 906fa4ce7e
commit c25557650f
3 changed files with 29 additions and 22 deletions
@@ -0,0 +1,21 @@
jq(document).ready(function() {
/*****************************************************************
* Check all checkboxes.
*****************************************************************/
jq("input[name='check_all']").click(function(){
if(jq(this).val()==0){
jq(this).parents("table")
.find("input:checkbox")
.attr("checked","checked")
.val("1");
}
else{
jq(this).parents("table")
.find("input:checkbox")
.attr("checked","")
.val("0");
}
});
});