diff options
author | zsloan | 2022-07-19 20:05:07 +0000 |
---|---|---|
committer | zsloan | 2022-07-19 20:05:07 +0000 |
commit | f22983a304d0c621ef3dab9aac8e824911e66485 (patch) | |
tree | 9e3d80fea91cd75fcb82d652ac6739529702cf83 | |
parent | 2e0e3aaa2c78c355e83cfae21c9655554451200b (diff) | |
download | genenetwork2-f22983a304d0c621ef3dab9aac8e824911e66485.tar.gz |
Change JS variables to camelCase and assign ID to table container div
-rw-r--r-- | wqflask/wqflask/templates/collections/view.html | 12 |
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); |