aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-05-24 17:22:38 -0500
committerzsloan2019-05-24 17:22:38 -0500
commit25eae5f41f5c821459f99bd0f3d777035a284564 (patch)
treeff4f7723e73c22ec476646aae89ce9e00cf0891e /wqflask
parent8fa44307a818c2d009863bdf9b3466ea0322478d (diff)
downloadgenenetwork2-25eae5f41f5c821459f99bd0f3d777035a284564.tar.gz
Fixed issue where change to making sample table unchecked made all figures not show up
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js
index 167fafcb..50765eda 100644
--- a/wqflask/wqflask/static/new/javascript/show_trait.js
+++ b/wqflask/wqflask/static/new/javascript/show_trait.js
@@ -394,7 +394,7 @@ process_id = function() {
return processed;
};
edit_data_change = function() {
- var already_seen, checkbox, checked, name, real_dict, real_value, real_variance, row, rows, sample_sets, table, tables, _i, _j, _len, _len1;
+ var already_seen, checkbox, name, real_dict, real_value, real_variance, row, rows, sample_sets, table, tables, _i, _j, _len, _len1;
already_seen = {};
sample_sets = {
samples_primary: new Stats([]),
@@ -416,8 +416,7 @@ edit_data_change = function() {
name = $.trim(name);
real_value = $(row).find('.edit_sample_value').val();
checkbox = $(row).find(".edit_sample_checkbox");
- checked = $(checkbox).prop('checked');
- if (checked && is_number(real_value) && real_value !== "") {
+ if (is_number(real_value) && real_value !== "") {
real_value = parseFloat(real_value);
sample_sets[table].add_value(real_value);
real_variance = $(row).find('.edit_sample_se').val();