diff --git a/app/static/js/table_recap.js b/app/static/js/table_recap.js index e1ec6ee2..aa322de2 100644 --- a/app/static/js/table_recap.js +++ b/app/static/js/table_recap.js @@ -219,7 +219,8 @@ $(function () { buttons: buttons, "drawCallback": function (settings) { // permet de conserver l'ordre de tri des colonnes - let order_info = JSON.stringify($('table.table_recap').DataTable().order()); + let table = $('table.table_recap').DataTable(); + let order_info = JSON.stringify(table.order()); if (formsemestre_id) { localStorage.setItem(order_info_key, order_info); } @@ -259,8 +260,8 @@ $(function () { $(function () { let row_selected = document.querySelector(".row_selected"); if (row_selected) { - /*row_selected.scrollIntoView(); - window.scrollBy(0, -50);*/ + row_selected.scrollIntoView(); + window.scrollBy(0, -125); row_selected.classList.add("selected"); } });