Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
7 changes: 7 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,13 @@ function init($container) {
}
});

// Autocomplete
$tags.autocomplete({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's it?

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