aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-06-07 21:13:52 +0000
committerzsloan2021-06-07 21:13:52 +0000
commit752c115008a8eb992fb9fca5bd8bd8c68dbe42df (patch)
treee5f289606c1c919ef4ebdc7e384ecdc2602a7b59 /wqflask
parent0522b23c9c0ada10df4afdc9be2251cd680b4356 (diff)
downloadgenenetwork2-752c115008a8eb992fb9fca5bd8bd8c68dbe42df.tar.gz
Define the table and then do the_table.draw() to fix issue where column headers sometimes aren't aligned with rows + change width of checkbox column
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/gsearch_pheno.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 5f1465d7..89316cbc 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -107,7 +107,7 @@
}
}
- $('#trait_table').DataTable( {
+ var the_table = $('#trait_table').DataTable( {
'drawCallback': function( settings ) {
$('#trait_table tr').click(function(event) {
if (event.target.type !== 'checkbox' && event.target.tagName.toLowerCase() !== 'a') {
@@ -147,7 +147,7 @@
{
'data': null,
'orderDataType': "dom-checkbox",
- 'width': "25px",
+ 'width': "10px",
'render': function(data, type, row, meta) {
return '<input type="checkbox" name="searchResult" class="trait_checkbox checkbox" value="' + data.hmac + '">'
}
@@ -281,6 +281,8 @@
'</tr>' +
'</tfoot>'
);
+
+ the_table.draw();
});
</script>