diff options
author | Zachary Sloan | 2012-12-07 15:17:30 -0600 |
---|---|---|
committer | Zachary Sloan | 2012-12-07 15:17:30 -0600 |
commit | a0ab498f670a674b96e6f10064e787fb995403ac (patch) | |
tree | 5dff325d65d3f247643fa624b772835a29e9440e /wqflask | |
parent | ef26532ba2792afdcca65d5f5f3c03f93a33f1ae (diff) | |
download | genenetwork2-a0ab498f670a674b96e6f10064e787fb995403ac.tar.gz |
Got links working for statistics table labels
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.coffee | 5 | ||||
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.js | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.coffee b/wqflask/wqflask/static/new/javascript/show_trait.coffee index 04d55be7..eb87cf04 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.coffee +++ b/wqflask/wqflask/static/new/javascript/show_trait.coffee @@ -161,7 +161,10 @@ $ -> for row in Stat_Table_Rows console.log("rowing") row_line = """<tr>""" - row_line += """<td id="#{ row.vn }">#{ row.pretty }</td>""" + if row.url? + row_line += """<td id="#{ row.vn }"><a href="#{row.url }">#{ row.pretty }</a></td>""" + else + row_line += """<td id="#{ row.vn }">#{ row.pretty }</td>""" console.log("box - js_data.sample_group_types:", js_data.sample_group_types) for own key, value of js_data.sample_group_types console.log("apple key:", key) diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 1037c890..ff705ea5 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -172,7 +172,11 @@ row = Stat_Table_Rows[_i]; console.log("rowing"); row_line = "<tr>"; - row_line += "<td id=\"" + row.vn + "\">" + row.pretty + "</td>"; + if (row.url != null) { + row_line += "<td id=\"" + row.vn + "\"><a href=\"" + row.url + "\">" + row.pretty + "</a></td>"; + } else { + row_line += "<td id=\"" + row.vn + "\">" + row.pretty + "</td>"; + } console.log("box - js_data.sample_group_types:", js_data.sample_group_types); _ref1 = js_data.sample_group_types; for (key in _ref1) { |