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:
@@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user