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

View File

@ -4,6 +4,9 @@ Changelog
1.0RC1 (unreleased) 1.0RC1 (unreleased)
------------------- -------------------
- Fix 'check all' on batch moderation page.
[davisagli]
- Use safe_unicode to decode the title of the content. encode("utf-9") caused - Use safe_unicode to decode the title of the content. encode("utf-9") caused
Dexterity based content types to raise a unicode decode error. This fixes Dexterity based content types to raise a unicode decode error. This fixes
http://dev.plone.org/plone/ticket/11292 http://dev.plone.org/plone/ticket/11292

View File

@ -108,7 +108,7 @@
* Check or uncheck all checkboxes from the batch moderation page. * Check or uncheck all checkboxes from the batch moderation page.
**********************************************************************/ **********************************************************************/
$("input[name='check_all']").click(function () { $("input[name='check_all']").click(function () {
if ($(this).val() === 0) { if ($(this).val() === '0') {
$(this).parents("table") $(this).parents("table")
.find("input:checkbox") .find("input:checkbox")
.attr("checked", "checked"); .attr("checked", "checked");