Prepend current organizer to typeahead

This commit is contained in:
Martin Gross
2019-05-28 12:29:54 +02:00
parent 9eef5d5d6d
commit b3436c1a93
3 changed files with 12 additions and 2 deletions

View File

@@ -242,7 +242,10 @@
<span class="caret"></span></a>
{% endif %}
<ul class="dropdown-menu event-dropdown" role="menu" data-event-typeahead
data-source="{% url "control:nav.typeahead" %}">
data-source="{% url "control:nav.typeahead" %}"
{% if request.event %}
data-organizer="{{ request.organizer.id }}"
{% endif %}>
<li class="query-holder">
<div class="form-box">
<input type="text" class="form-control" id="event-dropdown-field"