2
0
forked from Wavyzz/dolibarr
This commit is contained in:
pascal
2023-09-30 17:51:14 +02:00
parent fa9f6a7c0d
commit 1a10894e88

View File

@@ -9999,6 +9999,8 @@ function printCommonFooter($zone = 'private')
// Add 'field required' class on closest td for all input elements : input, textarea and select
print 'jQuery(":input[name=\'' . $paramkey . '\']").closest("tr").find("td:first").addClass("fieldrequired");' . "\n";
}
// If we submit the cancel button we remove the required attributes
print 'jQuery("input[name=\'cancel\']").click(function() {jQuery("input, textarea, select").each(function(){this.removeAttribute(\'required\');});});'."\n";
}
}
}