diff --git a/www/include/options/accessLists/actionsACL/formActionsAccess.ihtml b/www/include/options/accessLists/actionsACL/formActionsAccess.ihtml index e9263ae42983fb07ac6853d7fdb17a91ae51eb45..586c1c5e500f6dcb5a66798ed37742ad64a90997 100644 --- a/www/include/options/accessLists/actionsACL/formActionsAccess.ihtml +++ b/www/include/options/accessLists/actionsACL/formActionsAccess.ihtml @@ -140,29 +140,29 @@ {literal} <script> - jQuery('input[name=all_service]').change(function(){ - if(jQuery(this).attr('checked')){ - jQuery('.serviceCheckbox input').attr('checked',true); - }else{ - jQuery('.serviceCheckbox input').attr('checked',false); - } - }); + jQuery('input[name=all_service]').change(function(){ + if (jQuery(this).prop('checked')) { + jQuery('.serviceCheckbox input').attr('checked',true); + } else { + jQuery('.serviceCheckbox input').attr('checked',false); + } + }); - jQuery('input[name=all_host]').change(function(){ - if(jQuery(this).attr('checked')){ - jQuery('.hostCheckbox input').attr('checked',true); - }else{ - jQuery('.hostCheckbox input').attr('checked',false); - } - }); + jQuery('input[name=all_host]').change(function(){ + if (jQuery(this).prop('checked')) { + jQuery('.hostCheckbox input').attr('checked',true); + } else { + jQuery('.hostCheckbox input').attr('checked',false); + } + }); - jQuery('input[name=all_engine]').change(function(){ - if(jQuery(this).attr('checked')){ - jQuery('.engineCheckbox input').attr('checked',true); - }else{ - jQuery('.engineCheckbox input').attr('checked',false); - } - }); + jQuery('input[name=all_engine]').change(function(){ + if (jQuery(this).prop('checked')) { + jQuery('.engineCheckbox input').attr('checked',true); + } else { + jQuery('.engineCheckbox input').attr('checked',false); + } + }); </script> {/literal}