diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-12-21 23:13:17 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-12-21 23:13:17 +0100 |
commit | 1e95913315c21a2ce181007d66294c5f1f975038 (patch) | |
tree | bd8424a67bed0a121478603999d44ee3cf63ce44 /extensions/BMO/template/en/default/global | |
parent | 63ed510dfa9ac705d16df4344da5e41fcab6137e (diff) | |
download | bugzilla-1e95913315c21a2ce181007d66294c5f1f975038.tar.gz bugzilla-1e95913315c21a2ce181007d66294c5f1f975038.tar.xz |
- Converted several pages to use the new ProdCompSearch extension
- Other MyDashboard improvements/fixes
Diffstat (limited to 'extensions/BMO/template/en/default/global')
-rw-r--r-- | extensions/BMO/template/en/default/global/choose-product.html.tmpl | 22 | ||||
-rw-r--r-- | extensions/BMO/template/en/default/global/header.html.tmpl | 1 |
2 files changed, 17 insertions, 6 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 b9cd02cfc..c185989d1 100644 --- a/extensions/BMO/template/en/default/global/choose-product.html.tmpl +++ b/extensions/BMO/template/en/default/global/choose-product.html.tmpl @@ -39,11 +39,9 @@ [% h2 = "Which product would you like to have described?" %] [% END %] -[% yui = [ 'autocomplete' ] %] -[% javascript_urls = [ "js/field.js", "js/create_bug.js", - "extensions/BMO/web/js/prod_comp_search.js" ] %] -[% onload = "YAHOO.util.Dom.get('prod_comp_search').focus();" %] -[% style_urls.push("extensions/BMO/web/styles/prod_comp_search.css") %] +[% javascript_urls = [ "extensions/ProdCompSearch/web/js/prod_comp_search.js" ] %] +[% onload = "document.getElementById('prod_comp_search').focus();" %] +[% style_urls.push("extensions/ProdCompSearch/web/styles/prod_comp_search.css") %] [% DEFAULT title = "Choose a Product" %] [% PROCESS global/header.html.tmpl %] @@ -60,7 +58,19 @@ <h2>[% h2 FILTER html %]</h2> -[% PROCESS "global/prod-comp-search.html.tmpl" %] +<script> + [% IF format %] + ProdCompsearch.format = '[% format FILTER js %]'; + [% END %] + [% IF cloned_bug_id %] + ProdCompSearch.cloned_bug_id = '[% cloned_bug_id FILTER js %]'; + [% END %] +</script> +<div id="prod_comp_search_main"> + [% PROCESS prodcompsearch/form.html.tmpl + input_label = "Type to find product and component by name or description:" + %] +</div> <h2>or choose from the following selections</h2> diff --git a/extensions/BMO/template/en/default/global/header.html.tmpl b/extensions/BMO/template/en/default/global/header.html.tmpl index c2e3de08c..0ef406e7c 100644 --- a/extensions/BMO/template/en/default/global/header.html.tmpl +++ b/extensions/BMO/template/en/default/global/header.html.tmpl @@ -78,6 +78,7 @@ [% SET starting_js_urls = [ "js/yui/yahoo-dom-event/yahoo-dom-event.js", "js/yui/cookie/cookie-min.js", + "js/yui3/yui/yui-min.js" ] %] |