Bug 36640: (try) Fix ill-availability.js

Didn't test. Not sure what is 'datatablesConfig', does not seem
something from DT so I don't expect regressions from there.

Signed-off-by: Jake Deery <jake.deery@ptfs-europe.com>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-10-24 16:29:52 +02:00 committed by Katrin Fischer
parent adab2e8453
commit b3a3e4489f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 4 additions and 4 deletions

View File

@ -172,13 +172,13 @@ $(document).ready(function() {
// because the click event is caught after the request has been
// sent
tableDef.drawCallback = function() {
$('.paginate_button.next:not(.disabled)',
$('.dt-paging-button.next:not(.disabled)',
this.api().table().container()
).on('hover', function() {
forward = true;
directionSet = true;
});
$('.paginate_button.previous:not(.disabled)',
$('.dt-paging-button.previous:not(.disabled)',
this.api().table().container()
).on('hover', function() {
forward = false;
@ -230,8 +230,8 @@ $(document).ready(function() {
};
// Hide pagination buttons if appropriate
tableDef.drawCallback = function() {
var pagination = $(this).closest('.dataTables_wrapper')
.find('.dataTables_paginate');
var pagination = $(this).closest('.dt-container')
.find('.dt-paging');
pagination.toggle(this.api().page.info().pages > 1);
}
KohaTable(service.id, tableDef, table_settings);