summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/field.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/bug/field.html.tmpl')
-rw-r--r--template/en/default/bug/field.html.tmpl31
1 files changed, 14 insertions, 17 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index f1ddf633f..bfd385f9d 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -196,23 +196,20 @@
</script>
[% END %]
[% END %]
- [% CASE constants.FIELD_TYPE_KEYWORDS %]
- <div id="[% field.name FILTER html %]_container">
- <input type="text" id="[% field.name FILTER html %]" size="40"
- class="text_input" name="[% field.name FILTER html %]"
- value="[% value FILTER html %]">
- <div id="[% field.name FILTER html %]_autocomplete"></div>
- </div>
- <script type="text/javascript">
- if (typeof YAHOO.bugzilla.field_array === "undefined")
- YAHOO.bugzilla.field_array = [];
- YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [
- [%- FOREACH val = possible_values %]
- [%-# %]"[% val FILTER js %]"
- [%- "," IF NOT loop.last %][% END %]];
- YAHOO.bugzilla.fieldAutocomplete.init('[% field.name FILTER js %]',
- '[% field.name FILTER js %]_autocomplete');
- </script>
+ [% CASE constants.FIELD_TYPE_KEYWORDS %]
+ <input type="text" id="[% field.name FILTER html %]" size="40"
+ class="text_input bz_autocomplete_values"
+ name="[% field.name FILTER html %]"
+ data-values="[% field.name FILTER html %]"
+ value="[% value FILTER html %]">
+ <script type="text/javascript">
+ if (typeof BUGZILLA.autocomplete_values === 'undefined')
+ BUGZILLA.autocomplete_values = [];
+ BUGZILLA.autocomplete_values['[% field.name FILTER js %]'] = [
+ [%- FOREACH val = possible_values %]
+ [%- %]"[% val FILTER js %]"
+ [%- "," IF NOT loop.last %][% END %]];
+ </script>
[% END %]
[% ELSE %]
[% SWITCH field.type %]