From 1c13e5aa3f221a85448c8d453e8e79ef19c05ed0 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 2 Aug 2022 19:07:53 +0000
Subject: Remove unused parameters from column render functions in
search_result_page.html
---
wqflask/wqflask/templates/search_result_page.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
(limited to 'wqflask')
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 ''
}
},
@@ -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 '' + data.display_name + ''
}
},
@@ -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 '' + data.display_name + ''
}
},
@@ -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 '' + data.pubmed_text + ''
} 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 '' + data.display_name + ''
}
},
--
cgit v1.2.3