* Finish task #40320.
This commit is contained in:
@@ -39,14 +39,11 @@ $(function()
|
||||
{
|
||||
setTimeout(function()
|
||||
{
|
||||
var checkedProduct = true;
|
||||
$("[id^='productIDList']").each(function()
|
||||
{
|
||||
if(!$(this).prop('checked')) checkedProduct = false;
|
||||
})
|
||||
var allCount = $("[id^='productIDList']").length;
|
||||
var checkedCount = $("[id^='productIDList']:checked").length;
|
||||
|
||||
if(checkedProduct) $('.check-all').addClass('checked');
|
||||
if(!checkedProduct) $('.check-all').removeClass('checked');
|
||||
if(allCount == checkedCount) $('.check-all').addClass('checked');
|
||||
if(allCount != checkedCount) $('.check-all').removeClass('checked');
|
||||
}, 100)
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user