aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-05-04 19:24:15 +0000
committerzsloan2021-06-18 19:31:27 +0000
commit2d9220c3d88f5f818ae81e3cafdc69288c9cfbd8 (patch)
tree02c2d7f6edceffd17d76e2d5140c0a415ca32023
parentdc70723199c1cf84d4debee01a86646650afbba9 (diff)
downloadgenenetwork2-2d9220c3d88f5f818ae81e3cafdc69288c9cfbd8.tar.gz
Changed recheck_rows to include the DataTable as input in preparation for moving it into a separate JS file that can be imported by all table templates
-rw-r--r--wqflask/wqflask/templates/search_result_page.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index eac3ec61..279a1886 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -391,9 +391,9 @@
}{% endif %}
];
- recheck_rows = function(checked_rows){
+ recheck_rows = function(the_table, checked_rows){
//ZS: This is meant to recheck checkboxes after columns are resized
- check_cells = trait_table.column(0).nodes().to$();
+ check_cells = the_table.column(0).nodes().to$();
for (let i = 0; i < check_cells.length; i++) {
if (checked_rows.includes(i)){
check_cells[i].childNodes[0].checked = true;
@@ -523,7 +523,7 @@
let checked_rows = get_checked_rows();
trait_table = $('#' + tableId).DataTable(table_settings);
if (checked_rows.length > 0){
- recheck_rows(checked_rows);
+ recheck_rows(trait_table, checked_rows);
}
if (first_run){