diff options
author | zsloan | 2021-01-04 13:53:08 -0600 |
---|---|---|
committer | zsloan | 2021-01-04 13:53:08 -0600 |
commit | 5fdcf24585ebff01b36d59d0ce1955cfc90fb482 (patch) | |
tree | 3d83b682d1a8f94dfd369349826334d091dd8d9a | |
parent | a344835cefaaad5b8a7b96977d3963dc3cb4111e (diff) | |
download | genenetwork2-5fdcf24585ebff01b36d59d0ce1955cfc90fb482.tar.gz |
Only show Add button and run change_buttons function when genotypes are databased
-rw-r--r-- | wqflask/wqflask/templates/mapping_results.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/mapping_results.html b/wqflask/wqflask/templates/mapping_results.html index 022e9f6a..985d542c 100644 --- a/wqflask/wqflask/templates/mapping_results.html +++ b/wqflask/wqflask/templates/mapping_results.html @@ -248,7 +248,7 @@ <button class="btn btn-default" id="select_all"><span class="glyphicon glyphicon-ok"></span> Select All</button> <button class="btn btn-default" id="deselect_all"><span class="glyphicon glyphicon-remove"></span> Deselect All</button> <button class="btn btn-default" id="invert"><span class="glyphicon glyphicon-resize-vertical"></span> Invert</button> - <button class="btn btn-success" id="add" disabled><span class="glyphicon glyphicon-plus-sign"></span> Add</button> + {% if geno_db_exists == "True" %}<button class="btn btn-success" id="add" disabled><span class="glyphicon glyphicon-plus-sign"></span> Add</button>{% endif %} <br /> <br /> <div id="table_container" style="width:{% if 'additive' in trimmed_markers[0] %}600{% else %}550{% endif %}px;"> @@ -386,7 +386,7 @@ } else { $(this).addClass("selected") } - change_buttons(check_node=1) + {% if geno_db_exists == "True" %}change_buttons(check_node=1){% endif %} }); }, "columns": [ |