aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/search_result_page.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index d129a7cd..62ee93cc 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -193,7 +193,7 @@
'width': "5px",
'orderDataType': "dom-checkbox",
'targets': 0,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
return '<input type="checkbox" name="searchResult" class="checkbox trait_checkbox" value="' + data.hmac + '">'
}
},
@@ -213,7 +213,7 @@
'data': null,
'width': "{{ max_widths.display_name * 8 }}px",
'targets': 2,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
return '<a target="_blank" href="/show_trait?trait_id=' + data.display_name + '&dataset=' + data.dataset + '">' + data.display_name + '</a>'
}
},
@@ -229,7 +229,7 @@
'type': "natural",
'data': null,
'targets': 4,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
try {
return decodeURIComponent(escape(data.description))
} catch(err){
@@ -281,7 +281,7 @@
'width': "{{ max_widths.display_name * 9 }}px",
'data': null,
'targets': 2,
- '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>'
}
},
@@ -295,7 +295,7 @@
{% endif %}
'data': null,
'targets': 3,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
try {
return decodeURIComponent(escape(data.description))
} catch(err){
@@ -321,7 +321,7 @@
{% endif %}
'data': null,
'targets': 5,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
author_list = data.authors.split(",")
if (author_list.length >= 2) {
author_string = author_list.slice(0, 2).join(",") + ", et al."
@@ -337,7 +337,7 @@
'data': null,
'width': "50px",
'targets': 6,
- '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 {
@@ -375,7 +375,7 @@
'width': "{{ max_widths.display_name * 9 }}px",
'data': null,
'targets': 2,
- 'render': function(data, type, row, meta) {
+ 'render': function(data) {
return '<a target="_blank" href="/show_trait?trait_id=' + data.display_name + '&dataset=' + data.dataset + '">' + data.display_name + '</a>'
}
},