From bf192a52da5091e2e8aac864092a89d4e106f898 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 14 Jul 2022 19:15:27 +0000 Subject: 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 --- wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') 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) { -- cgit v1.2.3