FIX 14.0 - civility field width inadequate due to select2 calculating the width while the field has no width (display: none)

This commit is contained in:
atm-florian 2021-10-20 11:15:02 +02:00
parent eefa65f49b
commit 417daa4289

View File

@ -1151,6 +1151,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$("#typent_id").change();
$("#effectif_id").val(id_ef15);
$("#effectif_id").change();
if ($("#civility_id").data("select2")) {
$("#civility_id").select2({width: "resolve"});
}
$("#TypeName").html(document.formsoc.LastName.value);
document.formsoc.private.value=1;
});