aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-07-19 20:05:07 +0000
committerzsloan2022-07-19 20:05:07 +0000
commitf22983a304d0c621ef3dab9aac8e824911e66485 (patch)
tree9e3d80fea91cd75fcb82d652ac6739529702cf83 /wqflask
parent2e0e3aaa2c78c355e83cfae21c9655554451200b (diff)
downloadgenenetwork2-f22983a304d0c621ef3dab9aac8e824911e66485.tar.gz
Change JS variables to camelCase and assign ID to table container div
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/collections/view.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index a12c1369..2349e16d 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -94,7 +94,7 @@
<div style="margin-top: 10px; margin-bottom: 5px;">
<b>Show/Hide Columns:</b>
</div>
- <div style="min-width: 1500px;">
+ <div id="trait_table_container" style="min-width: 1500px;">
<table class="table-hover table-striped cell-border" id='trait_table' style="float: left;">
<tbody>
<td colspan="100%" align="center"><br><b><font size="15">Loading...</font></b><br></td>
@@ -126,14 +126,14 @@
<script type="text/javascript"
src="/static/new/javascript/partial_correlations.js"></script>
<script type='text/javascript'>
- var traits_json = {{ traits_json|safe }};
+ var traitsJson = {{ traits_json|safe }};
</script>
<script language="javascript" type="text/javascript">
$(document).ready( function () {
- table_id = "trait_table"
+ tableId = "trait_table"
- column_defs = [
+ columnDefs = [
{
'data': null,
'width': "5px",
@@ -275,7 +275,7 @@
}
]
- table_settings = {
+ tableSettings = {
"order": [[1, "asc" ]],
{% if traits_json|length > 10 %}
"scroller": true
@@ -284,7 +284,7 @@
{% endif %}
}
- create_table(table_id, traits_json, column_defs, table_settings)
+ create_table(tableId, traitsJson, columnDefs, tableSettings)
submit_special = function(url) {
$("#collection_form").attr("action", url);