aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-07-14 19:15:27 +0000
committerzsloan2022-07-14 19:15:27 +0000
commitbf192a52da5091e2e8aac864092a89d4e106f898 (patch)
treed9d929cfb97cd025cb45a0692849f26043e5d4a4
parent1e403623792daca83875b5fefd5193455facb88e (diff)
downloadgenenetwork2-bf192a52da5091e2e8aac864092a89d4e106f898.tar.gz
Call DataTable() on the table id instead of referring to the_table; not
sure why this is necessary, but the search doesn't work otherwise
-rw-r--r--wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
index e1026f8c..2e12ca26 100644
--- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
+++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
@@ -259,7 +259,7 @@ function loadDataTable(first_run=false, table_id, table_data){
}
$('#' + table_type.toLowerCase() + '_searchbox').on( 'keyup', function () {
- the_table.search($(this).val()).draw();
+ $('#' + table_id).DataTable().search($(this).val()).draw();
} );
$('.toggle-vis').on('click', function (e) {