aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-10-05 15:12:52 -0500
committerzsloan2020-10-05 15:12:52 -0500
commitf4cec3d4ae1083159521664d343c08340f59cfa8 (patch)
tree9b4cec668112107f523a124a71d26e569bfc4062
parenta3d9dad939a12d7c24fb9a125b973b7533db3824 (diff)
downloadgenenetwork2-f4cec3d4ae1083159521664d343c08340f59cfa8.tar.gz
Fixed issue that was causing SE column to not show up in the trait page table
* wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js - Apparently "true" in js_data was a boolean instead of a string, so the previous if statements weren't working properly
-rw-r--r--wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js10
1 files changed, 5 insertions, 5 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 71eae87f..ebed36d1 100644
--- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
+++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
@@ -2,10 +2,10 @@
// ZS: This variable is just created to get the column position of the first case attribute (if case attributes exist), since it's needed to set the row classes in createdRow for the DataTable
var attribute_start_pos = 3;
-if (js_data.se_exists === "true") {
+if (js_data.se_exists === true) {
attribute_start_pos += 2;
}
-if (js_data.has_num_cases === "true") {
+if (js_data.has_num_cases === true) {
attribute_start_post += 1;
}
@@ -48,7 +48,7 @@ build_columns = function() {
}
];
- if (js_data.se_exists === "true") {
+ if (js_data.se_exists === true) {
column_list.push(
{
'bSortable': false,
@@ -130,7 +130,7 @@ var primary_table = $('#samples_primary').DataTable( {
$('td', row).eq(1).addClass("column_name-Index")
$('td', row).eq(2).addClass("column_name-Sample")
$('td', row).eq(3).addClass("column_name-Value")
- if (js_data.se_exists === "true") {
+ if (js_data.se_exists === true) {
$('td', row).eq(5).addClass("column_name-SE")
if (js_data.has_num_cases === "true") {
$('td', row).eq(6).addClass("column_name-num_cases")
@@ -188,7 +188,7 @@ if (js_data.sample_lists.length > 1){
$('td', row).eq(1).addClass("column_name-Index")
$('td', row).eq(2).addClass("column_name-Sample")
$('td', row).eq(3).addClass("column_name-Value")
- if (js_data.se_exists === "true") {
+ if (js_data.se_exists === true) {
$('td', row).eq(5).addClass("column_name-SE")
if (js_data.has_num_cases === "true") {
$('td', row).eq(6).addClass("column_name-num_cases")