* finish task #2779.

This commit is contained in:
wangyidong
2016-11-21 09:19:01 +08:00
parent b3432912e5
commit a886430fd0
+9 -8
View File
@@ -1,11 +1,3 @@
function setNoChecked()
{
var noCheckValue = '';
$(':checkbox').each(function(){
if(!$(this).attr('checked') && $(this).next('span').attr('id') != undefined) noCheckValue = noCheckValue + ',' + $(this).next('span').attr('id');
})
$('#noChecked').val(noCheckValue);
}
function toggleProduct()
{
$('#productBox').toggle($('#product').prop("checked"));
@@ -27,4 +19,13 @@ $(function()
{
toggleProduct();
toggleProject();
$('.group-item :checkbox[name^="actions"]').change(function()
{
var allChecked = true;
$('.group-item :checkbox[name^="actions"]').each(function()
{
if(!$(this).prop('checked')) allChecked = false;
})
$('input:checkbox[name^="allchecker"]').prop('checked', allChecked);
})
})