From ce3364aad83938f1d84234aef6f4a19277637116 Mon Sep 17 00:00:00 2001
From: Sam Ockman
Date: Sat, 21 Jul 2012 19:39:31 -0400
Subject: checkpoint
---
wqflask/wqflask/show_trait/DataEditingPage.py | 12 ++++++---
.../new/javascript/trait_data_and_analysis.coffee | 20 +++++++++------
.../new/javascript/trait_data_and_analysis.js | 29 ++++++++++++++++------
3 files changed, 43 insertions(+), 18 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/show_trait/DataEditingPage.py b/wqflask/wqflask/show_trait/DataEditingPage.py
index 610124ae..68de5ae4 100755
--- a/wqflask/wqflask/show_trait/DataEditingPage.py
+++ b/wqflask/wqflask/show_trait/DataEditingPage.py
@@ -227,9 +227,15 @@ class DataEditingPage(templatePage):
# """)
self.basic_table['columns'] = yaml.load("""
- - All Cases
- - BXD Only
- - Non-BXD Only
+ -
+ n: All Cases
+ t: all
+ -
+ n: BXD Only
+ t: primary
+ -
+ n: Non-BXD Only
+ t: other
""")
print(pf(self.basic_table))
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 2c912f05..1f59788c 100644
--- a/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee
+++ b/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee
@@ -58,8 +58,9 @@ $ ->
make_table = ->
header = " "
rows = [
@@ -90,7 +91,7 @@ $ ->
row_line += """ "
for column in basic_table['columns']
- the_id = process_id("column_" + column)
- header += """#{ column } """
+ console.log("column:", column)
+ the_id = process_id("column", column.t)
+ header += """#{ column.n } """
header += "
@@ -3118,7 +3118,8 @@
basic_table = {{ basic_table | safe }}
-
+ -->
+
--
cgit v1.2.3
From a01f09ef2d008f6232e50d13da2080c0d0556cf6 Mon Sep 17 00:00:00 2001
From: Sam Ockman
Date: Mon, 13 Aug 2012 15:54:51 -0400
Subject: Small javascript changes
---
.../wqflask/static/new/javascript/trait_data_and_analysis.coffee | 4 ++--
wqflask/wqflask/static/new/javascript/trait_data_and_analysis.js | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
(limited to 'wqflask')
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 = " | "
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;
--
cgit v1.2.3
From 8c7a90ac6aef00d4ed64ed1789cf4722a8465a8e Mon Sep 17 00:00:00 2001
From: Sam Ockman
Date: Mon, 13 Aug 2012 17:42:28 -0400
Subject: Added whats_new template
---
wqflask/wqflask/templates/base.html | 2 +-
wqflask/wqflask/templates/whats_new.html | 25 +++++++++++++++++++++++++
wqflask/wqflask/views.py | 5 ++++-
3 files changed, 30 insertions(+), 2 deletions(-)
create mode 100644 wqflask/wqflask/templates/whats_new.html
(limited to 'wqflask')
diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html
index 4050164d..7d9218ed 100644
--- a/wqflask/wqflask/templates/base.html
+++ b/wqflask/wqflask/templates/base.html
@@ -112,7 +112,7 @@
Help
|
|
|