aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask
diff options
context:
space:
mode:
authorzsloan2015-07-15 15:57:35 +0000
committerzsloan2015-07-15 15:57:35 +0000
commit3138a1a174bcec433e005e3597e553e331a72c4b (patch)
treea5e943434a291c099b4cd1b1151beec3074abf4a /wqflask/wqflask
parentd58776bed21609f078188fe30f3c56e7abb245ad (diff)
downloadgenenetwork2-3138a1a174bcec433e005e3597e553e331a72c4b.tar.gz
Fixed some of the javascript after pulling Lei's changes to the search table
Diffstat (limited to 'wqflask/wqflask')
-rwxr-xr-xwqflask/wqflask/templates/search_result_page.html37
1 files 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 @@
<thead>
<tr>
{% for header in header_fields %}
- {% if header == 'Index' %}
- <th class="no-sort">{{header}}</th>
- {% elif header == 'Max LRS' %}
+ {% if header == 'Max LRS' %}
<th style="text-align: right;">Max&nbsp;&nbsp;<br>LRS<a href="http://genenetwork.org//glossary.html#L" target="_blank"><sup style="color:#f00"> ?</sup></a></th>
{% elif header == 'Additive Effect' %}
<th style="text-align: right;">Additive<br>Effect<a href="http://genenetwork.org//glossary.html#A" target="_blank"><sup style="color:#f00"> ?</sup></a></th>
@@ -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 );
- });
-
</script>
{% endblock %}