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:
parent
7a1fb0dc8c
commit
55cd8529c3
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user