From 4ae343aea7fec71c3df8dcb4ef73a31e48095b85 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 29 Jul 2025 14:34:18 +0200 Subject: [PATCH] Bug 38185: wip --- .../intranet-tmpl/prog/css/src/_tables.scss | 2 +- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss index b190dc2a315..03a4a7edfff 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss @@ -696,7 +696,7 @@ div { } } -.pager { +.dt-length, .dt-paging, .dt-search { display: flex; flex-wrap: wrap; font-size: 90%; diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index bdfe317ddaa..57b410b6711 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -36,7 +36,25 @@ var dataTablesDefaults = { excel: __("Excel"), }, }, - dom: '<"dt-info"i><"top pager"<"table_entries"lp><"table_controls"fB>>tr<"bottom pager"ip>', + // dom: '<"dt-info"i><"top pager"<"table_entries"lp><"table_controls"fB>>tr<"bottom pager"ip>', + layout: { + //top3Start: ["info"], + //top3End: null, + //top2Start: ["pageLength", "paging"], + //top2End: null, + //top: ["search", "buttons"], + //topStart: null, + //topEnd: null, + + top2Start: ["info"], + top2End: null, + top: ["pageLength", "paging", "search", "buttons"], + topStart: null, + topEnd: null, + + bottomStart: ["info", "paging"], + bottomEnd: null, + }, buttons: [ { fade: 100, -- 2.34.1