From 9371ec41dbb9c162084a4aa49f03184ce256cd4c Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 9 Feb 2017 22:19:27 +0000 Subject: Changed second column header to 'Value' when there's only one sample group --- wqflask/wqflask/static/new/javascript/show_trait.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 += "" + value + ""; + if (Object.keys(_ref).length > 1) { + header += "" + value + ""; + } else { + header += "Value"; + } } + header += ""; the_rows = ""; for (_i = 0, _len = Stat_Table_Rows.length; _i < _len; _i++) { -- cgit v1.2.3