From c6cf301278f1c1bc530d139d134e3c766aa10a3f Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 10 Mar 2025 12:32:54 -0500 Subject: Add utility to set up common DataTables events handlers. --- uploader/static/js/datatables.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uploader/static/js/datatables.js b/uploader/static/js/datatables.js index ff7a680..8d54a84 100644 --- a/uploader/static/js/datatables.js +++ b/uploader/static/js/datatables.js @@ -49,3 +49,9 @@ var dtAddRowClickHandler = (tableId) => { }); }); }; + + +var dtAddCommonHandlers = (tableId) => { + dtAddRowSelectionHandler(tableId); + dtAddRowClickHandler(tableId); +} -- cgit v1.2.3