Bug 30394: Make datatables.js aware of x-koha-request-id
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 30 Mar 2022 11:57:39 +0000 (13:57 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 4 Apr 2022 14:23:46 +0000 (16:23 +0200)
commit91c248adec65e90b2eb5fe236f9aad63ec1186d5
tree7ec4fea38cbf46a866e3c8536cbedef1ea9779e7
parentb25f6f1c304dca83c1da95dcc6d75cfbd2c977a4
Bug 30394: Make datatables.js aware of x-koha-request-id

This patch makes the wrapper handle the data.draw parameter (from
DataTables) translating it into the x-koha-request-id header for making
the Koha request, and then translates the received header into data.draw
for proper use in DataTables.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/datatables.js