diff options
-rw-r--r-- | wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js index 06e33878..05e4d547 100644 --- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js +++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js @@ -104,7 +104,11 @@ build_columns = function() { attr_name = Object.keys(data.extra_attributes).sort()[meta.col - data.first_attr_col] if (attr_name != null && attr_name != undefined){ + if (Array.isArray(data.extra_attributes[attr_name])){ + return '<a href="' + data.extra_attributes[attr_name][1] + '">' + data.extra_attributes[attr_name][0] + '</a>' + } else { return data.extra_attributes[attr_name] + } } else { return "" } |