From bf3e63a75b8fbc9d613ec3fd6289a178731692e4 Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Mon, 5 Jul 2010 02:42:01 -0500 Subject: Bug 455810 - Add autocomplete support to the keywords field * Special thanks to Guy Pyrzak for the original patch [r=mkanat a=mkanat] --- template/en/default/search/field.html.tmpl | 35 ++++++++++++++++++---- .../en/default/search/search-advanced.html.tmpl | 2 +- 2 files changed, 31 insertions(+), 6 deletions(-) (limited to 'template/en/default/search') diff --git a/template/en/default/search/field.html.tmpl b/template/en/default/search/field.html.tmpl index 50a2f0c06..d4a1a30b7 100644 --- a/template/en/default/search/field.html.tmpl +++ b/template/en/default/search/field.html.tmpl @@ -15,6 +15,7 @@ # Initial Developer. All Rights Reserved. # # Contributor(s): Guy Pyrzak + # Reed Loden # #%] [%# INTERFACE: @@ -35,16 +36,41 @@ tag_name = "span" editable = 1 %] - [% INCLUDE "search/type-select.html.tmpl" name = field.name _ "_type", types = types, - selected = type_selected %] - + selected = type_selected + %] + [% CASE constants.FIELD_TYPE_KEYWORDS %] + [% INCLUDE "bug/field-label.html.tmpl" + field = field + tag_name = "span" + editable = 1 + %] + [% INCLUDE "search/type-select.html.tmpl" + name = field.name _ "_type", + types = types, + selected = type_selected + %] +
+ +
+
+ [% CASE constants.FIELD_TYPE_DATETIME %] [% INCLUDE "bug/field-label.html.tmpl" field = field @@ -113,5 +139,4 @@ [% END %] - [% END %] - \ No newline at end of file + [% END %] diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl index 1e0cc9251..fa9819c35 100644 --- a/template/en/default/search/search-advanced.html.tmpl +++ b/template/en/default/search/search-advanced.html.tmpl @@ -38,7 +38,7 @@ var queryform = "queryform" title = "Search for $terms.bugs" onload = "doOnSelectProduct(0); enableHelp();" javascript = js_data - yui = [ 'calendar' ] + yui = [ 'autocomplete', 'calendar' ] javascript_urls = [ "js/productform.js", "js/util.js", "js/help.js" , "js/TUI.js", "js/field.js"] style_urls = [ "skins/standard/help.css" , "skins/standard/search_form.css" ] -- cgit v1.2.3-24-g4f1b