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 @@ -