From 8a646b232b144323989f5cb701d18de4745920ba Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 19 Jul 2022 20:34:12 +0000 Subject: Fix issue where customSettings weren't being passed when manually adjusting column widths --- wqflask/wqflask/static/new/javascript/create_datatable.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wqflask/wqflask/static/new/javascript/create_datatable.js b/wqflask/wqflask/static/new/javascript/create_datatable.js index 217e99be..2a895e18 100644 --- a/wqflask/wqflask/static/new/javascript/create_datatable.js +++ b/wqflask/wqflask/static/new/javascript/create_datatable.js @@ -1,10 +1,9 @@ create_table = function(tableId, tableData, columnDefs, customSettings) { - loadDataTable(tableId=tableId, tableFata=tableData, customSettings=customSettings, firstRun=true) + loadDataTable(tableId=tableId, tableData=tableData, customSettings, firstRun=true) - var widthChange = 0; //ZS: For storing the change in width so overall table width can be adjusted by that amount + var widthChange = 0; // For storing the change in width so overall table width can be adjusted by that amount function loadDataTable(tableId, tableData, customSettings, firstRun=false){ - if (!firstRun){ columnDefs = setUserColumnsDefWidths(tableId, columnDefs); } @@ -30,7 +29,7 @@ create_table = function(tableId, tableData, columnDefs, customSettings) { }, stop: function () { saveColumnSettings(tableId, theTable); - loadDataTable(tableId, tableData, firstRun=false); + loadDataTable(tableId, tableData, customSettings, firstRun=false); } }); } -- cgit v1.2.3