Scroll table pour avoir l'étudiant selectionné visible - à tester sur d'autres navigateurs?
This commit is contained in:
parent
58ecc52440
commit
211054a9af
@ -219,7 +219,8 @@ $(function () {
|
|||||||
buttons: buttons,
|
buttons: buttons,
|
||||||
"drawCallback": function (settings) {
|
"drawCallback": function (settings) {
|
||||||
// permet de conserver l'ordre de tri des colonnes
|
// 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) {
|
if (formsemestre_id) {
|
||||||
localStorage.setItem(order_info_key, order_info);
|
localStorage.setItem(order_info_key, order_info);
|
||||||
}
|
}
|
||||||
@ -259,8 +260,8 @@ $(function () {
|
|||||||
$(function () {
|
$(function () {
|
||||||
let row_selected = document.querySelector(".row_selected");
|
let row_selected = document.querySelector(".row_selected");
|
||||||
if (row_selected) {
|
if (row_selected) {
|
||||||
/*row_selected.scrollIntoView();
|
row_selected.scrollIntoView();
|
||||||
window.scrollBy(0, -50);*/
|
window.scrollBy(0, -125);
|
||||||
row_selected.classList.add("selected");
|
row_selected.classList.add("selected");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user