Skip to content

Commit

Permalink
dropdown and popovers: adding js for dropdowns in popover file
Browse files Browse the repository at this point in the history
this stops popover js overwriting dropdown and ensures both work when on same page
  • Loading branch information
Phillippa committed Jun 17, 2019
1 parent 63684bc commit 73b69d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions euth/projects/static/euth_projects/timeline-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ $('body').on('click', function (e) {
}
})
})

$('.dropdown-toggle').dropdown()
2 changes: 1 addition & 1 deletion euth/projects/templates/euth_projects/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block title %}{{view.project.name}}{% endblock %}

{% block extra_js %}
<script src="{% static 'euth_projects/timeline_popover.js' %}"></script>
<script src="{% static 'timeline_popover.js' %}"></script>
{% endblock %}

{% block extra_messages %}
Expand Down

0 comments on commit 73b69d0

Please sign in to comment.