aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-09-15 12:42:30 -0500
committerzsloan2020-09-15 12:42:30 -0500
commita224594125a88b75dcebc125e5e4b2394acedebb (patch)
treeac2ee928320795772456a49f4de2328e3226db03 /wqflask
parent0ba82e21e4ec8a0364ee22351e130106dd0b53ea (diff)
downloadgenenetwork2-a224594125a88b75dcebc125e5e4b2394acedebb.tar.gz
Added scroller to trait page and changed sample tables to use it
* wqflask/wqflask/templates/show_trait.html - Imported scroller (from the Google cdn temporarily for testing) and activated it for the sample tables, as well as disabled options that conflicted with it (like paging: false)
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/show_trait.html35
1 files changed, 17 insertions, 18 deletions
diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html
index 56df2049..fc65c5b1 100644
--- a/wqflask/wqflask/templates/show_trait.html
+++ b/wqflask/wqflask/templates/show_trait.html
@@ -150,6 +150,7 @@
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTables/js/jquery.dataTables.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/plugins/sorting/scientific.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script>
+ <script type="text/javascript" src="https://cdn.datatables.net/scroller/2.0.2/js/dataTables.scroller.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/noUiSlider/nouislider.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/javascript/get_covariates_from_collection.js"></script>
@@ -352,16 +353,15 @@
'order': [[1, "asc"]],
'sDom': "Ztr",
'autoWidth': true,
- 'deferRender': true,
- 'paging': false,
'orderClasses': true,
- 'scrollY': "600px",
- 'scrollCollapse': false,
- 'processing': true,
- 'language': {
- 'loadingRecords': '&nbsp;',
- 'processing': 'Loading...'
- }
+ "scrollY": "50vh",
+ 'scroller': true,
+ 'scrollCollapse': true
+ // 'processing': true,
+ // 'language': {
+ // 'loadingRecords': '&nbsp;',
+ // 'processing': 'Loading...'
+ // }
} );
primary_table.on( 'order.dt search.dt draw.dt', function () {
@@ -502,16 +502,15 @@
'order': [[1, "asc"]],
'sDom': "Ztr",
'autoWidth': true,
- 'deferRender': true,
- 'paging': false,
'orderClasses': true,
- 'scrollY': "600px",
- 'scrollCollapse': false,
- 'processing': true,
- 'language': {
- 'loadingRecords': '&nbsp;',
- 'processing': 'Loading...'
- }
+ "scrollY": "50vh",
+ 'scroller': true,
+ 'scrollCollapse': true
+ // 'processing': true,
+ // 'language': {
+ // 'loadingRecords': '&nbsp;',
+ // 'processing': 'Loading...'
+ // }
} );
$('#other_searchbox').on( 'keyup', function () {