about summary refs log tree commit diff
path: root/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js')
-rw-r--r--wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js19
1 files changed, 18 insertions, 1 deletions
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 6357a7da..96b245ea 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, process_id, show_hide_outliers, stats_mdp_change, update_stat_values;
+    var edit_data_change, hide_tabs, make_table, on_corr_method_change, process_id, show_hide_outliers, stats_mdp_change, update_stat_values;
     hide_tabs = function(start) {
       var x, _i, _results;
       _results = [];
@@ -186,6 +186,23 @@
         return console.log("Should be now Hide Outliers");
       }
     };
+    /*
+        Calculate Correlations Code
+    */
+
+    on_corr_method_change = function() {
+      var corr_method;
+      console.log("in beginning of on_corr_method_change");
+      corr_method = $('select[name=corr_method]').val();
+      console.log("corr_method is:", corr_method);
+      $('.correlation_desc').hide();
+      return $('#' + corr_method + "_r_desc").show().effect("highlight");
+    };
+    $('select[name=corr_method]').change(on_corr_method_change);
+    /*
+        End Calculate Correlations Code
+    */
+
     console.log("before registering show_hide_outliers");
     $('#show_hide_outliers').click(show_hide_outliers);
     console.log("after registering show_hide_outliers");