aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-06-23 20:57:38 +0000
committerzsloan2022-06-23 20:57:38 +0000
commit8e9423e0cdf771fe9603a7c1968ceac34bd4a64a (patch)
treec7057e2ddd4e2ec91defda7e1ec438d8630e9f09
parentca368e32528073de15d925b4293b938f95f69dac (diff)
downloadgenenetwork2-8e9423e0cdf771fe9603a7c1968ceac34bd4a64a.tar.gz
Add columnDefs as parameter for setUserColumnDefWidths
Now that the function is in a separate JS file it needs the parameter to be directly provided
-rw-r--r--wqflask/wqflask/static/new/javascript/table_functions.js4
1 files changed, 3 insertions, 1 deletions
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) {