diff options
author | zsloan | 2017-02-09 22:19:27 +0000 |
---|---|---|
committer | zsloan | 2017-02-09 22:19:27 +0000 |
commit | 9371ec41dbb9c162084a4aa49f03184ce256cd4c (patch) | |
tree | d3b6092a3b0fdb047417cf4eab8f51adbc040dbe | |
parent | 434ce88d3b7bf29a65e738aa171a7bba6a887471 (diff) | |
download | genenetwork2-9371ec41dbb9c162084a4aa49f03184ce256cd4c.tar.gz |
Changed second column header to 'Value' when there's only one sample group
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 19955b07..c7f9c562 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -179,8 +179,13 @@ if (!__hasProp.call(_ref, key)) continue; value = _ref[key]; the_id = process_id("column", key); - header += "<th id=\"" + the_id + "\" style=\"padding-left: 5px;\">" + value + "</th>"; + if (Object.keys(_ref).length > 1) { + header += "<th id=\"" + the_id + "\" style=\"padding-left: 5px;\">" + value + "</th>"; + } else { + header += "<th id=\"" + the_id + "\" style=\"padding-left: 5px;\">Value</th>"; + } } + header += "</thead>"; the_rows = "<tbody>"; for (_i = 0, _len = Stat_Table_Rows.length; _i < _len; _i++) { |