aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-07-19 20:34:12 +0000
committerzsloan2022-07-19 20:34:12 +0000
commit8a646b232b144323989f5cb701d18de4745920ba (patch)
tree2005cc30816bc318b351c288552f0645af952da5
parent0ca935b8abda975334b89673ccef4bcd55837773 (diff)
downloadgenenetwork2-8a646b232b144323989f5cb701d18de4745920ba.tar.gz
Fix issue where customSettings weren't being passed when manually adjusting column widths
-rw-r--r--wqflask/wqflask/static/new/javascript/create_datatable.js7
1 files 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);
}
});
}