diff options
author | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-02-22 01:00:53 +0100 |
---|---|---|
committer | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-02-22 01:00:53 +0100 |
commit | 59ed17e8610c3d1b40e4f47a936a34e9c3f2cde8 (patch) | |
tree | 120239facf0172cb7ab89ef4bd39b9b17e4c8224 /template/en/default/global | |
parent | ea17a5ebc0448e912fb59e03a6d3052a6159edfc (diff) | |
download | bugzilla-59ed17e8610c3d1b40e4f47a936a34e9c3f2cde8.tar.gz bugzilla-59ed17e8610c3d1b40e4f47a936a34e9c3f2cde8.tar.xz |
Bug 490923: Autocomplete assignee, qa contact, and cc on the client side
r=LpSolit, a=mkanat
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/header.html.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/global/userselect.html.tmpl | 34 |
2 files changed, 26 insertions, 10 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 904a89d45..8e94e86f4 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -260,7 +260,7 @@ class="[% urlbase.replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %] [% FOREACH class = bodyclasses %] [% ' ' %][% class FILTER css_class_quote %] - [% END %]"> + [% END %] yui-skin-sam"> [%# Migration note: the following file corresponds to the old Param # 'bannerhtml' diff --git a/template/en/default/global/userselect.html.tmpl b/template/en/default/global/userselect.html.tmpl index 35075ef9d..2a2d2cd52 100644 --- a/template/en/default/global/userselect.html.tmpl +++ b/template/en/default/global/userselect.html.tmpl @@ -12,6 +12,7 @@ # # Contributor(s): Byron Jones <bugzilla@glob.com.au> # Frédéric Buclin <LpSolit@gmail.com> + # Guy Pyrzak <guy.pyrzak@gmail.com> #%] [%# INTERFACE: @@ -69,15 +70,30 @@ [% END %] </select> [% ELSE %] -<input - name="[% name FILTER html %]" - value="[% value FILTER html %]" - [% IF onchange %] onchange="[% onchange FILTER html %]" [% END %] - [% IF disabled %] disabled="[% disabled FILTER html %]" [% END %] - [% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %] - [% IF size %] size="[% size FILTER html %]" [% END %] - [% IF id %] id="[% id FILTER html %]" [% END %] -> + [% IF id && feature_enabled('jsonrpc') %] + <div id="[% id FILTER html %]_autocomplete"> + [% END %] + <input + name="[% name FILTER html %]" + value="[% value FILTER html %]" + [% IF onchange %] onchange="[% onchange FILTER html %]" [% END %] + [% IF disabled %] disabled="[% disabled FILTER html %]" [% END %] + [% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %] + [% IF size %] size="[% size FILTER html %]" [% END %] + [% IF id %] id="[% id FILTER html %]" [% END %] + > + [% IF id && feature_enabled('jsonrpc') %] + <div id="[% id FILTER html %]_autocomplete_container"></div> + </div> + <script type="text/javascript"> + if( typeof(YAHOO.bugzilla.userAutocomplete) !== 'undefined' + && YAHOO.bugzilla.userAutocomplete != null){ + YAHOO.bugzilla.userAutocomplete.init( "[% id FILTER js %]", + "[% id FILTER js %]_autocomplete_container" + [% IF multiple %], true[% END%]); + } + </script> + [% END %] [% END %] |