aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-04-13 18:06:40 -0500
committerzsloan2020-04-13 18:06:40 -0500
commit10d1decc85f6018b5603e7a7d11938b267b57f6f (patch)
tree011c18a84290510dbbbc1303755f2601c45ac1fa
parent9e6b8a2b2adfb4b41867ecd6932ce899872eea9e (diff)
downloadgenenetwork2-10d1decc85f6018b5603e7a7d11938b267b57f6f.tar.gz
Fixed issue that caused export for HET3-ITP traits to not work due to the backslash in one of the case attribute names + added a couple links for stats table items
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js
index 003e0a90..28d13345 100644
--- a/wqflask/wqflask/static/new/javascript/show_trait.js
+++ b/wqflask/wqflask/static/new/javascript/show_trait.js
@@ -73,10 +73,12 @@ Stat_Table_Rows.push(
}, {
vn: "skewness",
pretty: "Skewness",
+ url: "https://en.wikipedia.org/wiki/Skewness",
digits: 3
}, {
vn: "kurtosis",
- pretty: "Kurtosis",
+ pretty: "Excess Kurtosis",
+ url: "https://en.wikipedia.org/wiki/Kurtosis",
digits: 3
}
);
@@ -389,7 +391,7 @@ make_table = function() {
}
row_line = "<tr>";
if (row.url != null) {
- row_line += "<td id=\"" + row.vn + "\" align=\"right\"><a href=\"" + row.url + "\" style=\"color: #000000;\">" + row.pretty + "</a></td>";
+ row_line += "<td id=\"" + row.vn + "\" align=\"right\"><a href=\"" + row.url + "\" style=\"color: #0000EE;\">" + row.pretty + "</a></td>";
} else {
row_line += "<td id=\"" + row.vn + "\" align=\"right\">" + row.pretty + "</td>";
}
@@ -839,7 +841,7 @@ get_sample_table_data = function(table_name) {
for (key in _ref) {
if (!__hasProp.call(_ref, key)) continue;
attribute_info = _ref[key];
- row_data[attribute_info.name] = $.trim($(element).find('.column_name-' + attribute_info.name.replace(" ", "_")).text());
+ row_data[attribute_info.name] = $.trim($(element).find('.column_name-' + attribute_info.name.replace(" ", "_").replace("/", "\\/")).text());
}
return samples.push(row_data);
};