diff options
author | zsloan | 2022-07-14 19:15:27 +0000 |
---|---|---|
committer | zsloan | 2022-07-14 19:15:27 +0000 |
commit | bf192a52da5091e2e8aac864092a89d4e106f898 (patch) | |
tree | d9d929cfb97cd025cb45a0692849f26043e5d4a4 /wqflask | |
parent | 1e403623792daca83875b5fefd5193455facb88e (diff) | |
download | genenetwork2-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
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js | 2 |
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) { |