Fixing tenant editor "Select all" checkbox

This commit is contained in:
Lombiq
2014-05-31 19:39:35 +02:00
committed by Zoltán Lehóczky
parent a35b0effee
commit 868a726567

View File

@@ -2,7 +2,7 @@
$(function () {
$(".select-all").click(function () {
var $checkbox = $(this);
var $allCheckboxes = $checkbox.parent().find(":checkbox");
var $allCheckboxes = $checkbox.closest("ol").find(":checkbox");
if ($checkbox.is(':checked')) {
$allCheckboxes.prop("checked", true);
}