From 424a35c7ceae86b8e5e22e4698997943336b5243 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 20 Oct 2020 15:21:47 -0500 Subject: Replaced _ with - in class names (though this change will end up being unnecessary with the scroller changes that move the table initialization to a separate file) * wqflask/wqflask/templates/show_trait.html - Replaced underscores with - in class names --- wqflask/wqflask/templates/show_trait.html | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index 599cef42..52a23665 100644 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -227,7 +227,7 @@ var primary_table = $('#samples_primary').DataTable( { 'initComplete': function(settings, json) { - $('.edit_sample_value').change(function() { + $('.edit-sample-value').change(function() { edit_data_change(); }); }, @@ -277,7 +277,7 @@ 'type': "natural", 'data': null, 'render': function(data, type, row, meta) { - return '' + data.name + '' + return '' + data.name + '' } }, { @@ -287,9 +287,9 @@ 'data': null, 'render': function(data, type, row, meta) { if (data.value == null) { - return '' + return '' } else { - return '' + return '' } } }{% if sample_groups[0].se_exists() %}, @@ -309,9 +309,9 @@ 'data': null, 'render': function(data, type, row, meta) { if (data.variance == null) { - return '' + return '' } else { - return '' + return '' } } }{% endif %}{% if has_num_cases %}, @@ -322,9 +322,9 @@ 'data': null, 'render': function(data, type, row, meta) { if (data.num_cases == null || data.num_cases == undefined) { - return '' + return '' } else { - return '' + return '' } } }{% endif %}{% if sample_groups[0].attributes|length > 0 %}{% for attribute in sample_groups[0].attributes|sort() %}, @@ -369,7 +369,7 @@ {% if sample_groups|length != 1 %} var other_table = $('#samples_other').DataTable( { 'initComplete': function(settings, json) { - $('.edit_sample_value').change(function() { + $('.edit-sample-value').change(function() { edit_data_change(); }); }, @@ -418,7 +418,7 @@ 'type': "natural", 'data': null, 'render': function(data, type, row, meta) { - return '' + data.name + '' + return '' + data.name + '' } }, { @@ -428,9 +428,9 @@ 'data': null, 'render': function(data, type, row, meta) { if (data.value == null) { - return '' + return '' } else { - return '' + return '' } } }{% if sample_groups[1].se_exists() %}, @@ -450,9 +450,9 @@ 'data': null, 'render': function(data, type, row, meta) { if (data.variance == null) { - return '' + return '' } else { - return '' + return '' } } }{% endif %}{% if has_num_cases %}, @@ -463,9 +463,9 @@ 'data': null, 'render': function(data, type, row, meta) { if (data.num_cases == null) { - return '' + return '' } else { - return '' + return '' } } }{% endif %}{% if sample_groups[1].attributes|length > 0 %}{% for attribute in sample_groups[1].attributes|sort() %}, -- cgit v1.2.3