From e98289020b0cf2aea19d55a15fd3ae61b8eb441e Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 2 Nov 2021 17:59:23 +0000 Subject: Removed the event for changing a sample value from initComplete and just put it in show_trait.js, since apparently the code in initComplete doesn't run with current DataTables settings --- .../wqflask/static/new/javascript/initialize_show_trait_tables.js | 5 ----- wqflask/wqflask/static/new/javascript/show_trait.js | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) (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 6c72449f..e1026f8c 100644 --- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js +++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js @@ -178,11 +178,6 @@ function loadDataTable(first_run=false, table_id, table_data){ } table_settings = { - 'initComplete': function(settings, json) { - $('.edit_sample_value').change(function() { - edit_data_change(); - }); - }, 'createdRow': function ( row, data, index ) { $(row).attr('id', table_type + "_" + data.this_id) $(row).addClass("value_se"); diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index f050d4ae..6b81b47e 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -1770,6 +1770,10 @@ $('#filter_by_value').click(function(){ edit_data_change(); }) +$('.edit_sample_value').change(function() { + edit_data_change(); +}); + $('#exclude_group').click(edit_data_change); $('#block_outliers').click(edit_data_change); $('#reset').click(edit_data_change); -- cgit v1.2.3