mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
fix: button correctly resets filters after POST
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input class="btn btn-block btn-danger" type="button" value="Reset Filters" onClick="this.form.reset()" />
|
<input class="btn btn-block btn-danger" type="button" value="Reset Filters" onClick="reset_filters();" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endbuttons %}
|
{% endbuttons %}
|
||||||
@@ -104,6 +104,12 @@
|
|||||||
|
|
||||||
{{ organisation_relationship_set|json_script:'organisation-relationship-set-data' }}
|
{{ organisation_relationship_set|json_script:'organisation-relationship-set-data' }}
|
||||||
|
|
||||||
|
<script type="application/javascript">
|
||||||
|
function reset_filters() {
|
||||||
|
$('select').prop('selectedIndex', -1);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.18.2/cytoscape.min.js"
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.18.2/cytoscape.min.js"
|
||||||
integrity="sha512-CBGCXtszkG5rYlQSTNUzk54/731Kz28WPk2uT1GCPCqgfVRJ2v514vzzf16HuGX9WVtE7JLqRuAERNAzFZ9Hpw=="
|
integrity="sha512-CBGCXtszkG5rYlQSTNUzk54/731Kz28WPk2uT1GCPCqgfVRJ2v514vzzf16HuGX9WVtE7JLqRuAERNAzFZ9Hpw=="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user