aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-05-04 19:29:01 +0000
committerzsloan2021-06-18 19:31:27 +0000
commit304128b1231df425709fbe3b128bd0c5eda4139b (patch)
treeb55597fe36dbb8a27eb370b9f0f737ddb601097d
parent2d9220c3d88f5f818ae81e3cafdc69288c9cfbd8 (diff)
downloadgenenetwork2-304128b1231df425709fbe3b128bd0c5eda4139b.tar.gz
Include table ID as input for get_checked_rows
-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 279a1886..adc8c264 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -408,9 +408,9 @@
}
}
- get_checked_rows = function(trait_table){
+ get_checked_rows = function(table_id){
let checked_rows = []
- $("#trait_table input").each(function(index){
+ $("#" + table_id + " input").each(function(index){
if ($(this).prop("checked") == true){
checked_rows.push(index);
}
@@ -520,7 +520,7 @@
$('#table_container').css("width", String($('#trait_table').width() + width_change {% if trait_list|length > 20 %}+ 17{% endif %}) + "px"); //ZS : Change the container width by the change in width of the adjusted column, so the overall table size adjusts properly
}
- let checked_rows = get_checked_rows();
+ let checked_rows = get_checked_rows(tableId);
trait_table = $('#' + tableId).DataTable(table_settings);
if (checked_rows.length > 0){
recheck_rows(trait_table, checked_rows);