diff --git a/resources/static/js/ppolicy.js b/resources/static/js/ppolicy.js index 36df342..e67ff29 100644 --- a/resources/static/js/ppolicy.js +++ b/resources/static/js/ppolicy.js @@ -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',