Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kitsune/questions/templates/questions/questions.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h3>{{ _('Show') }}</h3>
<section id="tag-filter">
<h3>{{ _('Filter') }}</h3>
<p>{{ _('Enter a tag. For example: "Firefox 14.0", "Windows 7", "crash"') }}</p>
<form action="#" method="get">
<form method="get">
<input type="hidden" class="current-tagged" value="{{ tagged }}"/>
{% for key, value in request.GET.items() %}
<input type="hidden" name="{{ key }}" value="{{ value }}"/>
Expand Down
10 changes: 10 additions & 0 deletions kitsune/sumo/static/js/tags.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ function init($container) {
}
});

// Set up autocomplete
// Skip if the autocomplete plugin isn't available (qunit tests).
if($tags.autocomplete) {
$tags.autocomplete({
source: _.keys(vocab),
delay: 0,
minLength: 1
});
}

// When form is submitted, get the slugs to send over in request.
$form.submit(function() {
var tagNames = $tags.val(),
Expand Down