From fdab05827a41507985b58704f6caac68676c918d Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 2 Feb 2024 20:35:25 +0200 Subject: [PATCH] fix buying hats --- files/assets/js/vendor/datatables.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/files/assets/js/vendor/datatables.js b/files/assets/js/vendor/datatables.js index 4b01fad30..3717e170a 100644 --- a/files/assets/js/vendor/datatables.js +++ b/files/assets/js/vendor/datatables.js @@ -9,3 +9,10 @@ const datatables = document.getElementsByClassName('datatable') for (const table of datatables) { table.classList.remove('d-none') } + +$('.datatable').on('page.dt', function(e) { + setTimeout(function () { + register_new_elements(e.currentTarget); + bs_trigger(e.currentTarget); + }, 200); +});