aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-08-02 19:14:07 +0000
committerzsloan2022-08-02 19:14:07 +0000
commitdd89575d502e691157f210cdebbd2afb8c292bff (patch)
tree6c98cfe869f664d7f4ea6477b5a137be9bd2583d
parente7db621fa700ec8749dddc183e75fa3b1bd7460e (diff)
downloadgenenetwork2-dd89575d502e691157f210cdebbd2afb8c292bff.tar.gz
Remove unused parameters from gsearch_pheno.html's column render functions
-rw-r--r--wqflask/wqflask/templates/gsearch_pheno.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 8824ce55..a7357b03 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -84,7 +84,7 @@
'orderDataType': "dom-checkbox",
'width': "10px",
'targets': 0,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
return '<input type="checkbox" name="searchResult" class="trait_checkbox checkbox" value="' + data.hmac + '">'
}
},
@@ -116,7 +116,7 @@
'width': "60px",
'targets': 4,
'orderDataType': "dom-inner-text",
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
return '<a target="_blank" href="/show_trait?trait_id=' + data.name + '&dataset=' + data.dataset + '">' + data.display_name + '</a>'
}
},
@@ -126,7 +126,7 @@
'width': "500px",
'targets': 5,
'data': null,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
try {
return decodeURIComponent(escape(data.description))
} catch(err) {
@@ -147,7 +147,7 @@
'width': "300px",
'targets': 7,
'data': null,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
author_list = data.authors.split(",")
if (author_list.length >= 6) {
author_string = author_list.slice(0, 6).join(",") + ", et al."
@@ -164,7 +164,7 @@
'orderDataType': "dom-inner-text",
'width': "25px",
'targets': 8,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
if (data.pubmed_id != "N/A"){
return '<a href="' + data.pubmed_link + '">' + data.pubmed_text + '</a>'
} else {