From b3a3e4489f82f7e4ad915537010e806351271f20 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 24 Oct 2024 16:29:52 +0200 Subject: [PATCH] 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 Signed-off-by: Lisette Scheer Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/ill-availability.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js b/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js index dfcef7e43b..24d65ea713 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js @@ -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);