1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-07 11:37:47 +02:00

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

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',