diff options
author | zsloan | 2020-10-05 16:17:29 -0500 |
---|---|---|
committer | zsloan | 2020-10-05 16:17:29 -0500 |
commit | c92504a72e3b0c017677abfdfd0dacf105295579 (patch) | |
tree | 6fd8d32fbbfdf92fffd5169fd542379bacd2042f | |
parent | 6b0a1c6359e0caeb8ae9f311f89d46dd8f837984 (diff) | |
download | genenetwork2-c92504a72e3b0c017677abfdfd0dacf105295579.tar.gz |
Simplified if statements
* wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js - simplified if statements to just say if(js_data.se_exists) instead of if(js_data.se_exists === true)
-rw-r--r-- | wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js | 8 |
1 files changed, 4 insertions, 4 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 ebed36d1..5be3c790 100644 --- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js +++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js @@ -2,7 +2,7 @@ // 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) { attribute_start_pos += 2; } if (js_data.has_num_cases === true) { @@ -48,7 +48,7 @@ build_columns = function() { } ]; - if (js_data.se_exists === true) { + if (js_data.se_exists) { 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) { $('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) { $('td', row).eq(5).addClass("column_name-SE") if (js_data.has_num_cases === "true") { $('td', row).eq(6).addClass("column_name-num_cases") |