From 4652339879624060925bc87c3c85c098c11057bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 28 Mar 2019 13:17:46 +0100 Subject: [PATCH] Use ajax link loading also on the higher pages in the part tables. --- assets/ts_src/ajax_ui.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/ts_src/ajax_ui.ts b/assets/ts_src/ajax_ui.ts index 50834347..5c293e9b 100644 --- a/assets/ts_src/ajax_ui.ts +++ b/assets/ts_src/ajax_ui.ts @@ -398,9 +398,15 @@ class AjaxUI { //Set the correct title in the table. let title = $('#part-card-header-src'); $('#part-card-header').html(title.html()); + + //Attach event listener to update links after new page selection: + $('#dt').on('draw.dt', function() { + ajaxUI.registerLinks(); + }); }); }); + console.debug('Datatables inited.'); } }