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:
parent
adab2e8453
commit
b3a3e4489f
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue