aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/templates
diff options
context:
space:
mode:
authorLei Yan2015-07-17 18:29:25 +0000
committerLei Yan2015-07-17 18:29:25 +0000
commite00b53485707c6ccc795b776d795dc4bc1fe0e15 (patch)
tree20cbc189264751a1335fa013f85f0571816d545f /wqflask/wqflask/templates
parentb5aa5cb11c5f13daa7d416c37cc49f504921b037 (diff)
parent28d88c740c52386ae464b0f03d1db7058b3ddcf9 (diff)
downloadgenenetwork2-e00b53485707c6ccc795b776d795dc4bc1fe0e15.tar.gz
Merge https://github.com/genenetwork/genenetwork2
Diffstat (limited to 'wqflask/wqflask/templates')
-rwxr-xr-xwqflask/wqflask/templates/search_result_page.html47
1 files changed, 19 insertions, 28 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index a1d67779..cc1a6a88 100755
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -119,15 +119,12 @@
<script language="javascript" type="text/javascript" src="/static/packages/DT_bootstrap/DT_bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/TableTools/media/js/TableTools.min.js"></script>
- <link href="//cdn.datatables.net/fixedheader/2.1.2/css/dataTables.fixedHeader.css" rel="stylesheet">
- <link href="//cdn.datatables.net/fixedcolumns/3.0.4/css/dataTables.fixedColumns.css" rel="stylesheet">
- <script src="//cdn.datatables.net/fixedheader/2.1.2/js/dataTables.fixedHeader.min.js"></script>
- <script src="//cdn.datatables.net/fixedcolumns/3.0.4/js/dataTables.fixedColumns.min.js"></script>
+ <link href="//cdn.datatables.net/fixedheader/2.1.2/css/dataTables.fixedHeader.css" rel="stylesheet">
+ <link href="//cdn.datatables.net/fixedcolumns/3.0.4/css/dataTables.fixedColumns.css" rel="stylesheet">
+ <script src="//cdn.datatables.net/fixedheader/2.1.2/js/dataTables.fixedHeader.min.js"></script>
+ <script src="//cdn.datatables.net/fixedcolumns/3.0.4/js/dataTables.fixedColumns.min.js"></script>
<script type="text/javascript" charset="utf-8">
-
- console.log("TESTING:", parseFloat("TESTING"))
-
function getValue(x) {
if (x.indexOf('input') >= 0) {
if ($(x).val() == 'x') {
@@ -176,7 +173,6 @@
console.time("Creating table");
{% if dataset.type == 'ProbeSet' %}
$('#trait_table').dataTable( {
- //"sDom": "<<'span3'l><'span3'T><'span4'f>'row-fluid'r>t<'row-fluid'<'span6'i><'span6'p>>",
"aoColumns": [
{ "bSortable": true, "sType": "natural" },
{ "sType": "natural" },
@@ -193,11 +189,14 @@
"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( {
- //"sDom": "<<'span3'l><'span3'T><'span4'f>'row-fluid'r>t<'row-fluid'<'span6'i><'span6'p>>",
"aoColumns": [
{ "bSortable": true, "sType": "natural" },
{ "sType": "natural" },
@@ -213,27 +212,19 @@
"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 %}