2023-01-12 17:08:39 +01:00
|
|
|
/* Page Inscriptions aux modules et UE du semestre
|
|
|
|
*/
|
|
|
|
|
|
|
|
function change_ue_inscr(elt) {
|
2023-11-17 13:53:17 +01:00
|
|
|
let url = "";
|
|
|
|
if (elt.checked) {
|
|
|
|
url = elt.dataset.url_inscr;
|
|
|
|
} else {
|
|
|
|
url = elt.dataset.url_desinscr;
|
|
|
|
}
|
|
|
|
$.post(url, {}, function (result) {
|
|
|
|
sco_message("changement inscription UE enregistré");
|
|
|
|
});
|
2023-03-27 18:30:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
$(function () {
|
2023-11-17 13:53:17 +01:00
|
|
|
$("table#but_ue_inscriptions").DataTable({
|
|
|
|
paging: false,
|
|
|
|
searching: true,
|
|
|
|
info: false,
|
|
|
|
autoWidth: false,
|
|
|
|
fixedHeader: {
|
|
|
|
header: true,
|
|
|
|
footer: false,
|
|
|
|
},
|
|
|
|
orderCellsTop: true, // cellules ligne 1 pour tri
|
|
|
|
aaSorting: [], // Prevent initial sorting
|
|
|
|
oLanguage: {
|
|
|
|
sSearch: "Chercher :",
|
|
|
|
},
|
|
|
|
});
|
2023-03-27 18:30:36 +02:00
|
|
|
});
|