From 38481a26c602ac9cec9a6aa79a3eebeb955ffcfa Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 8 Sep 2022 19:25:59 +0000 Subject: Remove commented out code --- wqflask/wqflask/static/new/javascript/show_trait.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index f8c8e949..8e037187 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -606,25 +606,6 @@ submit_special = function(url) { $("#trait_data_form").submit(); }; -// getTableContentsForFormSubmit = function(form_id) { -// // Borrowed code from - https://stackoverflow.com/questions/31418047/how-to-post-data-for-the-whole-table-using-jquery-datatables -// let this_form = $("#" + form_id); -// var params = primary_table.$('input').serializeArray(); - -// $.each(params, function(){ -// // If element doesn't exist in DOM -// if(!$.contains(document, this_form[this.name])){ -// // Create a hidden element -// this_form.append( -// $('') -// .attr('type', 'hidden') -// .attr('name', this.name) -// .val(this.value) -// ); -// } -// }); -// } - var corrInputList = ['sample_vals', 'corr_type', 'primary_samples', 'trait_id', 'dataset', 'group', 'tool_used', 'form_url', 'corr_sample_method', 'corr_samples_group', 'corr_dataset', 'min_expr', 'corr_return_results', 'location_type', 'loc_chr', 'min_loc_mb', 'max_loc_mb', 'p_range_lower', 'p_range_upper'] @@ -1396,7 +1377,7 @@ if (valRange < 0.05){ if (js_data.num_values < 256) { barChartWidth = 25 * getSampleVals(sampleLists[0]).length - //ZS: Set bottom margin dependent on longest sample name length, since those can get long + // Set bottom margin dependent on longest sample name length, since those can get long bottomMargin = getBarBottomMargin(sampleLists[0]) root.bar_layout = { -- cgit v1.2.3