diff options
author | Sam Ockman | 2012-08-13 15:54:51 -0400 |
---|---|---|
committer | Sam Ockman | 2012-08-13 15:54:51 -0400 |
commit | a01f09ef2d008f6232e50d13da2080c0d0556cf6 (patch) | |
tree | b188f72ad9f0c8a86a057b13c49caa8bd389f705 | |
parent | 401db0337fe2bcd4120535943cf0f88314f60c7b (diff) | |
download | genenetwork2-a01f09ef2d008f6232e50d13da2080c0d0556cf6.tar.gz |
Small javascript changes
-rw-r--r-- | wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee | 4 | ||||
-rw-r--r-- | wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee b/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee index 03a0018b..bbee9c5a 100644 --- a/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee +++ b/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee @@ -21,7 +21,7 @@ $ -> $(".stats_mdp").change(stats_mdp_change) - mean = (the_values)-> + update_stat_values = (the_values)-> for category in ['primary', 'other', 'all'] id = "#" + process_id(category, "mean") console.log("id:", id) @@ -80,7 +80,7 @@ $ -> the_values.other.push(real_value) the_values.all.push(real_value) console.log("torwads end:", the_values) - mean(the_values) + update_stat_values(the_values) make_table = -> header = "<thead><tr><th> </th>" diff --git a/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js b/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js index cf034fe1..1a067820 100644 --- a/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js +++ b/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js @@ -10,7 +10,7 @@ }; $(function() { - var edit_data_change, hide_tabs, make_table, mean, process_id, stats_mdp_change; + var edit_data_change, hide_tabs, make_table, process_id, stats_mdp_change, update_stat_values; hide_tabs = function(start) { var x, _i, _results; _results = []; @@ -27,7 +27,7 @@ return $("#stats_tabs" + selected).show(); }; $(".stats_mdp").change(stats_mdp_change); - mean = function(the_values) { + update_stat_values = function(the_values) { var category, current_mean, current_n_of_samples, id, in_box, n_of_samples, the_mean, total, value, _i, _j, _len, _len1, _ref, _ref1, _results; _ref = ['primary', 'other', 'all']; _results = []; @@ -102,7 +102,7 @@ } } console.log("torwads end:", the_values); - return mean(the_values); + return update_stat_values(the_values); }; make_table = function() { var column, header, row, row_line, rows, table, the_id, the_rows, _i, _j, _k, _len, _len1, _len2, _ref, _ref1; |