Tableaux recap: sauvegarde état. Close #414
This commit is contained in:
parent
c1f7bcdb92
commit
d65a30a9e9
@ -133,7 +133,7 @@ $(function () {
|
||||
}
|
||||
});
|
||||
}
|
||||
$('table.table_recap').DataTable(
|
||||
let table = $('table.table_recap').DataTable(
|
||||
{
|
||||
paging: false,
|
||||
searching: true,
|
||||
@ -146,6 +146,7 @@ $(function () {
|
||||
orderCellsTop: true, // cellules ligne 1 pour tri
|
||||
aaSorting: [], // Prevent initial sorting
|
||||
colReorder: true,
|
||||
stateSave: true, // enregistre état de la table (tris, ...)
|
||||
"columnDefs": [
|
||||
{
|
||||
// cache les codes, le détail de l'identité, les groupes, les colonnes admission et les vides
|
||||
@ -208,7 +209,6 @@ $(function () {
|
||||
"order": order_info,
|
||||
}
|
||||
);
|
||||
|
||||
});
|
||||
$('table.table_recap tbody').on('click', 'tr', function () {
|
||||
if ($(this).hasClass('selected')) {
|
||||
@ -223,8 +223,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, -50);*/
|
||||
row_selected.classList.add("selected");
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user