From 003d71db7ff0edb38b8fd964824cb8323dc68d54 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Tue, 7 May 2002 02:30:12 +0000 Subject: Bug 140993 - Pass javascript correctly into header; templatise the rest of the header-related parameters. Patch by gerv; r=bbaetz, caillon. --- template/en/default/attachment/create.html.tmpl | 2 +- template/en/default/bug/edit.html.tmpl | 2 +- template/en/default/global/header.html.tmpl | 41 ++++++++++++++++------ .../en/default/search/search-advanced.html.tmpl | 2 +- template/en/default/search/search.html.tmpl | 2 +- 5 files changed, 35 insertions(+), 14 deletions(-) (limited to 'template/en') diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 414639c22..cb979b0c8 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -32,7 +32,7 @@ th { text-align: right; vertical-align: baseline; white-space: nowrap; } td { text-align: left; vertical-align: baseline; padding-bottom: 5px; } " - extra = "onload=\"setContentTypeDisabledState();\"" + body_attributes = "onload=\"setContentTypeDisabledState();\"" %]
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index e7abc1950..335c599ef 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -25,7 +25,7 @@ title = "Bug $bug.bug_id - $bug.short_desc" h1 = "Bugzilla Bug $bug.bug_id" h2 = filtered_desc - extra = navigation_links() + header_html = navigation_links() %] [% END %] diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index f77649ae3..3c79e22d1 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -16,7 +16,7 @@ # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # - # Contributor(s): + # Contributor(s): Gervase Markham #%] [%# INTERFACE: @@ -31,22 +31,23 @@ #%] [% DEFAULT - title = "" h1 = title h2 = "" - extra = "" - jscript = "" - style = "" - message = "" %] [% title FILTER html %] - [% Param('headerhtml') %] +[%# Migration note: contents of the old Param 'headerhtml' would go here %] + + [% header_html %] - [% jscript %] + [% IF javascript %] + + [% END %] [% IF style %]