1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-11 12:08:51 +01: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({ $('#form').validator({
custom: { custom: {
'ppolicy': function($el) { 'ppolicy': function($el) {
if(! $el.prop('required') && $el.val() == 0){
return true;
};
var $ret = 'PPolicy error'; var $ret = 'PPolicy error';
$.ajax({ $.ajax({
url: '/checkppolicy', url: '/checkppolicy',