From 78c472aeb77fb76c54ac93f5811425e05888983f Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 29 Apr 2016 16:52:36 +0000 Subject: Fixed links in correlation descriptions on trait page and removed target=_blank (so will not open in new window unless user specifies) Fixed javascript so description changes when user changes the method and "Type" option is removed for literature correlation --- wqflask/wqflask/static/new/javascript/show_trait.js | 9 ++++----- .../templates/show_trait_calculate_correlations.html | 16 ++++++++-------- 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 9e249c28..2fa77ae0 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -296,18 +296,17 @@ }; on_corr_method_change = function() { var corr_method; - console.log("in beginning of on_corr_method_change"); - corr_method = $('select[name=corr_method]').val(); + corr_method = $('select[name=corr_type]').val(); console.log("corr_method is:", corr_method); $('.correlation_desc').hide(); $('#' + corr_method + "_r_desc").show().effect("highlight"); if (corr_method === "lit") { - return $("#corr_sample_method_options").hide(); + return $("#corr_sample_method").hide(); } else { - return $("#corr_sample_method_options").show(); + return $("#corr_sample_method").show(); } }; - $('select[name=corr_method]').change(on_corr_method_change); + $('select[name=corr_type]').change(on_corr_method_change); submit_special = function(url) { $("#trait_data_form").attr("action", url); diff --git a/wqflask/wqflask/templates/show_trait_calculate_correlations.html b/wqflask/wqflask/templates/show_trait_calculate_correlations.html index ed58b32c..80fafa5e 100755 --- a/wqflask/wqflask/templates/show_trait_calculate_correlations.html +++ b/wqflask/wqflask/templates/show_trait_calculate_correlations.html @@ -63,7 +63,7 @@ -
+