Fixing style errors.

This commit is contained in:
stickler-ci 2021-07-21 07:48:57 +00:00
parent 0396573b91
commit 252765303e

View File

@ -679,8 +679,8 @@ if (!empty($usemargins) && $user->rights->margins->creer) {
<?php if ($this->table_element_line != 'commande_fournisseurdet' || $this->table_element_line == 'facture_fourn_det') { ?>
$("#date_start, #date_end").focusout(function()
{
let type = $(this).attr('type');
let mandatoryP = $(this).attr('mandatoryperiod');
let type = $(this).attr('type');
let mandatoryP = $(this).attr('mandatoryperiod');
if (type == 1 && mandatoryP == 1 ){
if ( $(this).val() == '' && !$(this).hasClass("error") ) {
$(this).addClass('error');