Fix validation for Terms of Service

This commit is contained in:
2017-01-13 10:23:27 -05:00
parent 3ee9c11666
commit aeaf5002e9
9 changed files with 29 additions and 37 deletions
+6
View File
@@ -0,0 +1,6 @@
// enforcetrue attribute client support
jQuery.validator.addMethod("enforcetrue",
function(value, element) {
return element.checked;
});
jQuery.validator.unobtrusive.adapters.addBool("enforcetrue");