aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-11-02 17:59:23 +0000
committerzsloan2021-11-02 17:59:23 +0000
commite98289020b0cf2aea19d55a15fd3ae61b8eb441e (patch)
tree7efa91c50bef18c20df8dfabca54ac9eaba65f6e
parent09b3299bb00303f66ada401673f6684288182b6f (diff)
downloadgenenetwork2-e98289020b0cf2aea19d55a15fd3ae61b8eb441e.tar.gz
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
-rw-r--r--wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js5
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait.js4
2 files changed, 4 insertions, 5 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 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);