summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-09-19 01:21:04 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-09-19 01:21:04 +0200
commit7df0160f6aaf3adcb3e6ddca0fc172c5ea89eb8c (patch)
tree68aeffb5ff80219f5cf9b4a5161e7c45bca16f71
parentf1d9113d83214ba08069f695ba176dec90a0d770 (diff)
downloadbugzilla-7df0160f6aaf3adcb3e6ddca0fc172c5ea89eb8c.tar.gz
bugzilla-7df0160f6aaf3adcb3e6ddca0fc172c5ea89eb8c.tar.xz
Bug 578256 - Autocomplete user names in the search UI
r=pyrzak, a=mkanat
-rw-r--r--template/en/default/search/form.html.tmpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl
index e1f8a5f68..f519c8f69 100644
--- a/template/en/default/search/form.html.tmpl
+++ b/template/en/default/search/form.html.tmpl
@@ -342,7 +342,19 @@ TUI_hide_default('information_query');
[% " selected" IF default.emailtype.$n == qv.name %]>[% qv.description %]</option>
[% END %]
</select>
- <input name="email[% n %]" class="email" id="email[% n %]" value="[% default.email.$n FILTER html %]">
+ [% IF feature_enabled('jsonrpc') %]
+ <div id="email[% n %]_autocomplete">
+ [% END %]
+ <input name="email[% n %]" class="email" id="email[% n %]"
+ value="[% default.email.$n FILTER html %]">
+ [% IF feature_enabled('jsonrpc') %]
+ <div id="email[% n %]_autocomplete_container"></div>
+ </div>
+ <script type="text/javascript">
+ YAHOO.bugzilla.userAutocomplete.init( "email[% n %]",
+ "email[% n %]_autocomplete_container");
+ </script>
+ [% END %]
</div>
[% END %]
[% Hook.process('email_numbering_end') %]