This commit is contained in:
2026-03-17 13:48:09 +00:00
parent e041401d17
commit ed40f77e3f
2 changed files with 93 additions and 63 deletions

View File

@@ -49552,29 +49552,31 @@ function retour_colleges_types()
}
function nouveaucollegetype(){
donnees = '';
$.ajax({
url: $("#racineWeb").val()+"Ajaxnouveaucollegetype/",
type : 'post',
data: donnees,
error: function(errorData){
alert("Erreur : "+errorData);
},
success: function(data) {
//alert("Success : "+data);
$('#div_nouveaucollegetype').html(data);
$('#div_nouveaucollegetype').modal("show");
$('#div_nouveaucollegetype').on('shown.bs.modal', function(){
stylechampsRequis();
$('#codeCollegeType').focus();
});
},
complete: function() {
}
});
}
function nouveaucollegetype() {
let racineWeb = $("#racineWeb").val();
$.ajax({
url: racineWeb + "Ajaxnouveaucollegetype/",
type: 'post',
data: {},
beforeSend: function() {
// Optionnel : afficher un loader global ou désactiver le bouton appelant
},
success: function(data) {
let $modal = $('#div_nouveaucollegetype');
$modal.html(data);
$modal.modal("show");
$modal.on('shown.bs.modal', function() {
// Focus sur le premier champ pour une saisie immédiate
$('#libelle').focus();
});
},
error: function(xhr) {
alert_ebene("Erreur lors de l'ouverture du formulaire", "Error opening the form");
}
});
}
function ajoutercollegetype(){