From 8e9423e0cdf771fe9603a7c1968ceac34bd4a64a Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 23 Jun 2022 20:57:38 +0000 Subject: Add columnDefs as parameter for setUserColumnDefWidths Now that the function is in a separate JS file it needs the parameter to be directly provided --- wqflask/wqflask/static/new/javascript/table_functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/table_functions.js b/wqflask/wqflask/static/new/javascript/table_functions.js index 22732397..ea2cf60c 100644 --- a/wqflask/wqflask/static/new/javascript/table_functions.js +++ b/wqflask/wqflask/static/new/javascript/table_functions.js @@ -26,7 +26,7 @@ getCheckedRows = function(tableId){ return checkedRows } -function setUserColumnsDefWidths(tableId) { +function setUserColumnsDefWidths(tableId, columnDefs) { var userColumnDef; // Get the settings for this table from localStorage @@ -57,6 +57,8 @@ function setUserColumnsDefWidths(tableId) { }) } }); + + return columnDefs } function saveColumnSettings(tableId, traitTable) { -- cgit v1.2.3