From fcdf86c3d914652a3d63a70706a21eaf96950f4f Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 15 Apr 2007 23:43:26 +0000 Subject: Bug 182082: Help system should support more browsers - Patch by Teemu Mannermaa r=myk a=LpSolit --- .../en/default/search/search-advanced.html.tmpl | 32 +++++++++------------- 1 file changed, 13 insertions(+), 19 deletions(-) (limited to 'template/en/default/search') diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl index 5d9849caf..22dc1dd7d 100644 --- a/template/en/default/search/search-advanced.html.tmpl +++ b/template/en/default/search/search-advanced.html.tmpl @@ -37,9 +37,10 @@ var queryform = "queryform" [% PROCESS global/header.html.tmpl title = "Search for $terms.bugs" - onload = "doOnSelectProduct(0); initHelp();" + onload = "doOnSelectProduct(0); enableHelp();" javascript = js_data - javascript_urls = [ "js/productform.js" ] + javascript_urls = [ "js/productform.js" "js/util.js" "js/help.js" ] + style_urls = [ "skins/standard/help.css" ] style = "dl.bug_changes dt { margin-top: 15px; }" @@ -50,25 +51,19 @@ var queryform = "queryform" [% button_name = "Search" %] [%# The decent help requires Javascript %] + - [% END %] + document.write("

Give me some help<\/a> (reloads page).<\/p>"); [% ELSE %] -

- For help, mouse over the page elements. - - [% IF cgi.user_agent("Mozilla/5") %] - Note that if the help popups are hidden by form element scroll bars, - this is a bug in your browser, - not in [% terms.Bugzilla %]. - [% END %] - -

+ [% PROCESS "search/search-help.html.tmpl" %] + if (generateHelp()) + document.write("

For help, mouse over the page elements.<\/p>"); + else + document.write("

Help initialization failed, no help available.<\/p>"); [% END %] +// --> + +

[% PROCESS search/form.html.tmpl %] @@ -81,7 +76,6 @@ var queryform = "queryform"
-[% PROCESS "search/search-help.html.tmpl" IF cgi.param("help") %] [% END %] -- cgit v1.2.3-24-g4f1b