From 75a72014c01886ff0219df82f48d5975aa54a30b Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 15 Jul 2015 15:41:14 +0000 Subject: Cursor doesn't change when hovering over index column header now --- wqflask/wqflask/static/packages/TableTools/media/css/TableTools.css | 5 +++++ wqflask/wqflask/templates/search_result_page.html | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/static/packages/TableTools/media/css/TableTools.css b/wqflask/wqflask/static/packages/TableTools/media/css/TableTools.css index 705008b0..ffa2af34 100755 --- a/wqflask/wqflask/static/packages/TableTools/media/css/TableTools.css +++ b/wqflask/wqflask/static/packages/TableTools/media/css/TableTools.css @@ -319,3 +319,8 @@ div.DTTT_collection a.DTTT_button { line-height: 20px; } +.no-sort::after { display: none!important; } +.no-sort { pointer-events: none!important; + cursor: default!important; +} + diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index 7c39ac61..8e2b6b9f 100755 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -49,7 +49,9 @@ {% for header in header_fields %} - {% if header == 'Max LRS' %} + {% if header == 'Index' %} + {{header}} + {% elif header == 'Max LRS' %} {{header}} ? {% elif header == 'Additive Effect' %} {{header}} ? -- cgit 1.4.1 From d58776bed21609f078188fe30f3c56e7abb245ad Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 15 Jul 2015 15:44:32 +0000 Subject: Small mistake during last merge; forgot to change if to elif in template --- wqflask/wqflask/templates/search_result_page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index e1fa213f..da61f8a9 100755 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -51,7 +51,7 @@ {% for header in header_fields %} {% if header == 'Index' %} {{header}} - {% if header == 'Max LRS' %} + {% elif header == 'Max LRS' %} Max  
LRS ? {% elif header == 'Additive Effect' %} Additive
Effect ? -- cgit 1.4.1 From 3138a1a174bcec433e005e3597e553e331a72c4b Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 15 Jul 2015 15:57:35 +0000 Subject: Fixed some of the javascript after pulling Lei's changes to the search table --- wqflask/wqflask/templates/search_result_page.html | 37 ++++++++++------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index da61f8a9..ca80af40 100755 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -49,9 +49,7 @@ {% for header in header_fields %} - {% if header == 'Index' %} - {{header}} - {% elif header == 'Max LRS' %} + {% if header == 'Max LRS' %} Max  
LRS ? {% elif header == 'Additive Effect' %} Additive
Effect ? @@ -195,7 +193,11 @@ "autoWidth": true, "bLengthChange": true, "bDeferRender": true, - "bSortClasses": false + "bSortClasses": false, + "scrollY": "300px", + "scrollX": "100%", + "scrollCollapse": true, + "paging": false } ); {% elif dataset.type == 'Publish' %} $('#trait_table').dataTable( { @@ -215,27 +217,20 @@ "autoWidth": true, "bLengthChange": true, "bDeferRender": true, - "bSortClasses": false + "bSortClasses": false, + "scrollY": "300px", + "scrollX": "100%", + "scrollCollapse": true, + "paging": false } ); {% endif %} console.timeEnd("Creating table"); + + var table = $('#trait_table').DataTable(); + new $.fn.dataTable.FixedHeader( table ); + new $.fn.dataTable.FixedColumns( table ); + }); - - $(document).ready( function () { - var table = $('#trait_table').DataTable(); - new $.fn.dataTable.FixedHeader( table ); - }); - - $(document).ready( function () { - var table = $('#trait_table').DataTable( { - "scrollY": "300px", - "scrollX": "100%", - "scrollCollapse": true, - "paging": false - }); - new $.fn.dataTable.FixedColumns( table ); - }); - {% endblock %} -- cgit 1.4.1 From 28d88c740c52386ae464b0f03d1db7058b3ddcf9 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 15 Jul 2015 18:31:22 +0000 Subject: Fixed issue where chromosome view doesn't work on qtlreaper mapping results --- wqflask/wqflask/static/new/javascript/chr_lod_chart.js | 9 ++++++++- wqflask/wqflask/templates/search_result_page.html | 14 ++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/wqflask/wqflask/static/new/javascript/chr_lod_chart.js b/wqflask/wqflask/static/new/javascript/chr_lod_chart.js index c060d9d7..616a89f6 100644 --- a/wqflask/wqflask/static/new/javascript/chr_lod_chart.js +++ b/wqflask/wqflask/static/new/javascript/chr_lod_chart.js @@ -96,11 +96,18 @@ Chr_Lod_Chart = (function() { Chr_Lod_Chart.prototype.create_coordinates = function() { var i, len, ref, result, results; ref = this.these_results; + console.log("THESE_RESULTS:", ref) results = []; for (i = 0, len = ref.length; i < len; i++) { result = ref[i]; this.x_coords.push(parseFloat(result.Mb)); - this.y_coords.push(result.lod_score); + if (js_data.result_score_type == "LOD") { + this.y_coords.push(result.lod_score); + } + else { + console.log("LRS VALUE:", result['lrs_value']) + this.y_coords.push(result['lrs_value']); + } results.push(this.marker_names.push(result.name)); } return results; diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index ca80af40..cc1a6a88 100755 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -119,15 +119,12 @@ - - - - + + + + - {% endblock %} -- cgit 1.4.1