From e717233a928783e634ca66e7bd03d3d6fcc59ea4 Mon Sep 17 00:00:00 2001 From: Catouse Date: Thu, 27 Nov 2014 13:58:22 +0800 Subject: [PATCH] * fixed bug #653. --- lib/front/front.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 01be933c56..cc88d12533 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -383,6 +383,7 @@ $(function() if(e.closest('.datatable').length) return; scope = e.data('scope'); scope = scope ? $('#' + scope) : e.closest('.table'); + if(!scope.length) scope = e.closest('form'); scope.find('input:checkbox').each(e.hasClass('check-inverse') ? function() { $(this).attr("checked", !$(this).attr("checked"));} : function() { $(this).attr("checked", true);}); }); });