From 100c78339829b975f8954658bd8a544ebe8a2391 Mon Sep 17 00:00:00 2001 From: trembon Date: Mon, 19 Feb 2024 22:58:58 +0100 Subject: [PATCH] include all rows in csv export (#12) --- resources/app/app.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/resources/app/app.js b/resources/app/app.js index e549a67..932fd36 100644 --- a/resources/app/app.js +++ b/resources/app/app.js @@ -339,17 +339,9 @@ $(function () { }); $("body").on("click", ".export-btn", e => { - let page = currTable.getPage(); - let pageSize = currTable.getPageSize(); - currTable.setPageSize(true); - currTable.setPage(1); - currTable.download("csv", "export.csv"); - currTable.setPageSize(pageSize); - currTable.setPage(page); - // currTable && currTable.download("csv", "data.csv"); + currTable.download("csv", "export.csv", {}, "all"); }); - $("body").on("click", ".library-organize-action", e => { e.preventDefault(); if (state.settings.organize_options.create_folder_per_game === false &&