Maketank Theme migration
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-01-30 13:52:59 +01:00
parent f2643ac887
commit 53a6485a6e
413 changed files with 6836 additions and 1985 deletions

View File

@@ -0,0 +1,37 @@
$(document).ready(function () {
$('#customer_add,#customer_edit').each(function () {
$(this).validate({
rules: {
'name': {
required: function () {
return $('#company').val().length === 0 || $('#firstname').val().length > 0;
}
},
'firstname': {
required: function () {
return $('#company').val().length === 0 || $('#name').val().length > 0;
}
},
'company': {
required: function () {
return $('#name').val().length === 0
&& $('#firstname').val().length === 0;
}
}
},
});
});
$('#domain_add,#domain_edit').each(function () {
$(this).validate({
rules: {
'ipandport[]': {
required: true,
minlength: 1
}
},
errorPlacement: function(error, element) {
$(error).prependTo($(element).parent().parent());
}
});
});
});