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:
parent
eefa65f49b
commit
417daa4289
@ -1151,6 +1151,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
$("#typent_id").change();
|
$("#typent_id").change();
|
||||||
$("#effectif_id").val(id_ef15);
|
$("#effectif_id").val(id_ef15);
|
||||||
$("#effectif_id").change();
|
$("#effectif_id").change();
|
||||||
|
if ($("#civility_id").data("select2")) {
|
||||||
|
$("#civility_id").select2({width: "resolve"});
|
||||||
|
}
|
||||||
$("#TypeName").html(document.formsoc.LastName.value);
|
$("#TypeName").html(document.formsoc.LastName.value);
|
||||||
document.formsoc.private.value=1;
|
document.formsoc.private.value=1;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user