adding special treatment if field is not required for ppolicy

This commit is contained in:
kakwa 2015-11-02 23:43:51 +01:00
parent 7a1fb0dc8c
commit 55cd8529c3
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
$('#form').validator({
custom: {
'ppolicy': function($el) {
if(! $el.prop('required') && $el.val() == 0){
return true;
};
var $ret = 'PPolicy error';
$.ajax({
url: '/checkppolicy',