diff options
author | zsloan | 2022-08-02 19:07:53 +0000 |
---|---|---|
committer | zsloan | 2022-08-02 19:07:53 +0000 |
commit | 1c13e5aa3f221a85448c8d453e8e79ef19c05ed0 (patch) | |
tree | fc8f7156843b706e414e6f0b78abd29d8a045798 /wqflask | |
parent | 7bad8d7d86a72932ab49498c44c0e345ec93f43e (diff) | |
download | genenetwork2-1c13e5aa3f221a85448c8d453e8e79ef19c05ed0.tar.gz |
Remove unused parameters from column render functions in search_result_page.html
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/search_result_page.html | 16 |
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>' } }, |