summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-06-13 18:47:03 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-06-13 18:47:03 +0200
commit9b288d52c3b8ecdb932f7e0266e7c5bcedae4210 (patch)
tree4dc75db647ba96b20c17b40edd801ca9a78b2760
parent6d75beffb9d1667aacc233c359fb296e26aac871 (diff)
downloadbugzilla-9b288d52c3b8ecdb932f7e0266e7c5bcedae4210.tar.gz
bugzilla-9b288d52c3b8ecdb932f7e0266e7c5bcedae4210.tar.xz
Focus product/component search field on page load for choose-product and guided entry
-rw-r--r--extensions/BMO/template/en/default/global/choose-product.html.tmpl1
-rw-r--r--extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl4
2 files changed, 5 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/global/choose-product.html.tmpl b/extensions/BMO/template/en/default/global/choose-product.html.tmpl
index 6eec58065..9dd2787c3 100644
--- a/extensions/BMO/template/en/default/global/choose-product.html.tmpl
+++ b/extensions/BMO/template/en/default/global/choose-product.html.tmpl
@@ -35,6 +35,7 @@
[% yui = [ 'autocomplete' ] %]
[% javascript_urls = [ "js/field.js", "js/create_bug.js",
"extensions/BMO/web/js/choose_product.js" ] %]
+ [% onload = "YAHOO.util.Dom.get('prod_comp_search').focus();" %]
[% ELSIF target == "describecomponents.cgi" %]
[% title = "Browse" %]
[% h2 = "Please specify the product whose components you want described." %]
diff --git a/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl b/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl
index ef00477cd..fc0a1321e 100644
--- a/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl
+++ b/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl
@@ -15,6 +15,10 @@
[% yui_modules = [ 'history', 'datatable', 'container' ] %]
[% yui_modules.push('autocomplete') IF BMO %]
+[% IF BMO %]
+ [% onload = "YAHOO.util.Dom.get('prod_comp_search').focus();" %]
+[% END %]
+
[% PROCESS global/header.html.tmpl
title = "Enter A Bug"
javascript_urls = js_urls