From 6a30e25598b2ca665746954bb26a6c6e08021b34 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 2 Aug 2022 19:16:07 +0000 Subject: Remove unused parameters from trait page sample table's column render functions --- .../static/new/javascript/initialize_show_trait_tables.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 2765a880..cfc4f39e 100644 --- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js +++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js @@ -17,7 +17,7 @@ buildColumns = function() { 'searchable' : false, 'targets': 0, 'width': "25px", - 'render': function(data, type, row, meta) { + 'render': function() { return '' } }, @@ -35,7 +35,7 @@ buildColumns = function() { 'data': null, 'targets': 2, 'width': "60px", - 'render': function(data, type, row, meta) { + 'render': function(data) { return '' + data.name + '' } }, @@ -46,7 +46,7 @@ buildColumns = function() { 'data': null, 'targets': 3, 'width': "60px", - 'render': function(data, type, row, meta) { + 'render': function(data) { if (data.value == null) { return '' } else { @@ -67,7 +67,7 @@ buildColumns = function() { 'targets': 4, 'searchable' : false, 'width': "25px", - 'render': function(data, type, row, meta) { + 'render': function() { return '±' } }, @@ -78,7 +78,7 @@ buildColumns = function() { 'data': null, 'targets': 5, 'width': "60px", - 'render': function(data, type, row, meta) { + 'render': function(data) { if (data.variance == null) { return '' } else { @@ -98,7 +98,7 @@ buildColumns = function() { 'data': null, 'targets': 6, 'width': "60px", - 'render': function(data, type, row, meta) { + 'render': function(data) { if (data.num_cases == null || data.num_cases == undefined) { return '' } else { @@ -120,7 +120,7 @@ buildColumns = function() { 'data': null, 'targets': 4, 'width': "60px", - 'render': function(data, type, row, meta) { + 'render': function(data) { if (data.num_cases == null || data.num_cases == undefined) { return '' } else { -- cgit v1.2.3