fix comparison of string to integer which broke 'check all'
svn path=/plone.app.discussion/trunk/; revision=45926
This commit is contained in:
parent
7dbcc9e2be
commit
4c31afeac2
@ -4,6 +4,9 @@ Changelog
|
||||
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
|
||||
Dexterity based content types to raise a unicode decode error. This fixes
|
||||
http://dev.plone.org/plone/ticket/11292
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user