From 89622a79f0881572d7cbf1fbc8fb0929b2ccb08b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 23 Jan 2026 17:35:10 -0600 Subject: DataTables: Add some custom utility functions. --- uploader/static/js/datatables.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'uploader/static/js') diff --git a/uploader/static/js/datatables.js b/uploader/static/js/datatables.js index 3259987..2ed435b 100644 --- a/uploader/static/js/datatables.js +++ b/uploader/static/js/datatables.js @@ -74,5 +74,8 @@ var buildDataTable = (tableId, data = [], columns = [], userSettings = {}) => { .prop("checked", false); }); }); + + theDataTable.selectAll = () => {theDataTable.rows().select()}; + theDataTable.deselectAll = () => {theDataTable.rows().deselect()}; return theDataTable; }; -- cgit 1.4.1