fix: rendering of select2 fields in network filter

This commit is contained in:
James Graham
2021-05-12 21:05:37 +01:00
parent 8f7767fa5c
commit 479ef038d4

View File

@@ -1,6 +1,9 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block extra_head %} {% block extra_head %}
{# There's no 'form' so need to add this to load CSS / JS #}
{{ relationship_form.media.css }}
<link rel="stylesheet" <link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/cytoscape-panzoom/2.5.3/cytoscape.js-panzoom.min.css" href="https://cdnjs.cloudflare.com/ajax/libs/cytoscape-panzoom/2.5.3/cytoscape.js-panzoom.min.css"
integrity="sha512-MJrzp+ZGajx6AWCCCmjBWo0rPFavM1aBghVUSVVa0uYv8THryrtEygjj5r2rUg/ms33SkEC5xJ3E4ycCmxWdrw==" integrity="sha512-MJrzp+ZGajx6AWCCCmjBWo0rPFavM1aBghVUSVVa0uYv8THryrtEygjj5r2rUg/ms33SkEC5xJ3E4ycCmxWdrw=="
@@ -93,6 +96,8 @@
{% endblock %} {% endblock %}
{% block extra_script %} {% block extra_script %}
{{ relationship_form.media.js }}
<!-- <!--
Embedding graph data in page as JSON allows filtering to be performed entirely on the backend when we send a POST. Embedding graph data in page as JSON allows filtering to be performed entirely on the backend when we send a POST.
--> -->
@@ -106,7 +111,7 @@
<script type="application/javascript"> <script type="application/javascript">
function reset_filters() { function reset_filters() {
$('select').prop('selectedIndex', -1); $('select').val(null).trigger('change');
} }
</script> </script>