ScoDoc/app/static/js/scolar_index.js

43 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

/* Page accueil département */
var apo_editor = null;
2022-04-21 13:59:53 +02:00
var elt_annee_apo_editor = null;
var elt_sem_apo_editor = null;
$(document).ready(function () {
var table_options = {
paging: false,
searching: false,
info: false,
/* "autoWidth" : false, */
fixedHeader: {
header: true,
footer: true,
},
orderCellsTop: true, // cellules ligne 1 pour tri
aaSorting: [], // Prevent initial sorting
};
$("table.semlist").DataTable(table_options);
let table_editable = document.querySelector("table#semlist.apo_editable");
if (table_editable) {
let save_url = document.querySelector("table#semlist.apo_editable").dataset
.apo_save_url;
apo_editor = new ScoFieldEditor(".etapes_apo_str", save_url, false);
2022-04-21 13:59:53 +02:00
save_url = document.querySelector("table#semlist.apo_editable").dataset
.elt_annee_apo_save_url;
elt_annee_apo_editor = new ScoFieldEditor(
".elt_annee_apo",
save_url,
false
);
2022-04-21 13:59:53 +02:00
save_url = document.querySelector("table#semlist.apo_editable").dataset
.elt_sem_apo_save_url;
elt_sem_apo_editor = new ScoFieldEditor(".elt_sem_apo", save_url, false);
save_url = document.querySelector("table#semlist.apo_editable").dataset
.elt_passage_apo_save_url;
elt_passage_apo_editor = new ScoFieldEditor(".elt_passage_apo", save_url, false);
}
});