mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-24 10:14:31 +01:00
adding special treatment if field is not required for ppolicy
This commit is contained in:
parent
7a1fb0dc8c
commit
55cd8529c3
@ -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…
Reference in New Issue
Block a user