diff --git a/dist/legalform.js b/dist/legalform.js index bc3f1c2..bc29104 100644 --- a/dist/legalform.js +++ b/dist/legalform.js @@ -1,3 +1,4 @@ + var calculationVars = { globals: [ 'Array', 'Date', 'JSON', 'Math', 'NaN', 'RegExp', 'decodeURI', 'decodeURIComponent', 'true', 'false', @@ -1495,7 +1496,7 @@ function LegalFormHtml($) { for (var i = 0; i < allCheckboxes.length; i++) { if (allCheckboxes[i].checked) { checked++; - } else { + } else if (allCheckboxes[i].type !== 'radio') { $(allCheckboxes[i]).prop('required', false); } } diff --git a/js/legalform-validation.js b/js/legalform-validation.js index cbd62f5..3d30acb 100644 --- a/js/legalform-validation.js +++ b/js/legalform-validation.js @@ -239,7 +239,7 @@ for (var i = 0; i < allCheckboxes.length; i++) { if (allCheckboxes[i].checked) { checked++; - } else { + } else if (allCheckboxes[i].type !== 'radio') { $(allCheckboxes[i]).prop('required', false); } }