* Finish task #42390.

This commit is contained in:
xieqiyu
2021-09-08 14:35:57 +08:00
parent 2c957c5970
commit c636b99dcc
+3 -3
View File
@@ -41,9 +41,9 @@ $(function()
var $tbody = $('#productTableList');
$tbody.find('.program-checkbox').each(function()
{
var $checkbox = $(this);
var $tr = $checkbox.closest('tr');
var rowID = $tr.data('id');
var $checkbox = $(this);
var $tr = $checkbox.closest('tr');
var rowID = $tr.data('id');
var isAllRowChecked = !$tbody.find('tr[data-parent="' + rowID + '"] input:checkbox:not(:checked)').length;
$checkbox.toggleClass('checked', isAllRowChecked);
});