mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 03:47:35 +02:00
adding special treatment if field is not required for ppolicy
This commit is contained in:
parent
7a1fb0dc8c
commit
55cd8529c3
1 changed files with 3 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue