Bug 26262: Remove wrong dom setting in course reserves (OPAC)
The current setting required pagination to be displayed. This was hidden probably as a side effect of styling settings. But the docs are clear on the fact that p and l are intended for displaying pagination controls and table rows lenght information [1] As the course reserves datatable is not paginated, this needs to be fixed properly by removing those controls in the configuration. This patch does so. To test: 1. Have some course reserves 2. See them in the OPAC => FAIL: Some funky, misaligned pagination artifacts are displayed 3. Apply this patch and reload => SUCCESS: Things are back to normal! 4. Sign off :-D [1] https://datatables.net/examples/basic_init/dom.html Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
24556e73d2
commit
1bc7e5a645
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@
|
|||
$(document).ready(function() {
|
||||
columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
|
||||
KohaTable("#course_reserves_table", {
|
||||
"dom": '<"top"flp>rt<"clear">',
|
||||
"dom": '<"top"f>rt<"clear">',
|
||||
"sorting": [[ 1, "asc" ]],
|
||||
"autoWidth": false,
|
||||
"asColumnDefs": [
|
||||
|
|
Loading…
Reference in a new issue