fix comparison of string to integer which broke 'check all'

svn path=/plone.app.discussion/trunk/; revision=45926
This commit is contained in:
David Glick
2010-11-23 18:53:38 +00:00
parent 7dbcc9e2be
commit 4c31afeac2
2 changed files with 4 additions and 1 deletions
@@ -108,7 +108,7 @@
* Check or uncheck all checkboxes from the batch moderation page.
**********************************************************************/
$("input[name='check_all']").click(function () {
if ($(this).val() === 0) {
if ($(this).val() === '0') {
$(this).parents("table")
.find("input:checkbox")
.attr("checked", "checked");