From 58965a746aea4d6fc34e101a0958ecdc46493acb Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Tue, 18 Dec 2012 18:02:19 -0600 Subject: Changed html for the marker regression tab Created file show_trait_mapping_tools.coffee to handle submitting the form to the marker regression page Changed form name/id in show_trait.html to "trait_data_form" --- .../new/javascript/show_trait_mapping_tools.coffee | 8 +++ .../new/javascript/show_trait_mapping_tools.js | 16 ++++++ wqflask/wqflask/templates/show_trait.html | 3 +- .../templates/show_trait_mapping_tools.html | 57 ++++++++++------------ 4 files changed, 51 insertions(+), 33 deletions(-) create mode 100644 wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.coffee create mode 100644 wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.coffee b/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.coffee new file mode 100644 index 00000000..cd6dc1d8 --- /dev/null +++ b/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.coffee @@ -0,0 +1,8 @@ +$ -> + run_marker_regression = -> + console.log("In marker regression") + url = "/marker_regression" + $("#trait_data_form").attr("action", url); + $("#trait_data_form").submit() + + $("#marker_regression_btn").click(run_marker_regression) \ No newline at end of file diff --git a/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js b/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js new file mode 100644 index 00000000..cca396a9 --- /dev/null +++ b/wqflask/wqflask/static/new/javascript/show_trait_mapping_tools.js @@ -0,0 +1,16 @@ +// Generated by CoffeeScript 1.3.3 +(function() { + + $(function() { + var run_marker_regression; + run_marker_regression = function() { + var url; + console.log("In marker regression"); + url = "/marker_regression"; + $("#trait_data_form").attr("action", url); + return $("#trait_data_form").submit(); + }; + return $("#marker_regression_btn").click(run_marker_regression); + }); + +}).call(this); diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index 28341186..6d1a3d4b 100644 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -11,7 +11,7 @@ -
+ {% for key in hddn %} {% endfor %} @@ -48,5 +48,6 @@ + {% endblock %} diff --git a/wqflask/wqflask/templates/show_trait_mapping_tools.html b/wqflask/wqflask/templates/show_trait_mapping_tools.html index 1109ded3..d584a774 100644 --- a/wqflask/wqflask/templates/show_trait_mapping_tools.html +++ b/wqflask/wqflask/templates/show_trait_mapping_tools.html @@ -49,43 +49,36 @@ Use Weighted
- + +
+ Composite Mapping + - Control for a marker as a co-factor (e.g.: rs12345): + + +
+ +
- - - - - - -
- - - - - - - - - - - - - - - - - - -
Display LRS greater than:
Display all LRS
Use Parents
Use Weighted

-
-
-
Marker regression computes and displays LRS + + + + + + +
-- cgit v1.2.3