From: gerv%gerv.net <> Date: Tue, 7 May 2002 02:30:12 +0000 (+0000) Subject: Bug 140993 - Pass javascript correctly into header; templatise the rest of the header... X-Git-Tag: bugzilla-2.16rc1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=003d71db7ff0edb38b8fd964824cb8323dc68d54;p=thirdparty%2Fbugzilla.git Bug 140993 - Pass javascript correctly into header; templatise the rest of the header-related parameters. Patch by gerv; r=bbaetz, caillon. --- diff --git a/CGI.pl b/CGI.pl index bcbb08d256..b62913d365 100644 --- a/CGI.pl +++ b/CGI.pl @@ -332,8 +332,8 @@ sub value_quote { } # Adds elements for bug lists. These can be inserted into the header by -# (ab)using the "jscript" parameter to PutHeader, which inserts an arbitrary -# string into the header. This is currently used only in +# using the "header_html" parameter to PutHeader, which inserts an arbitrary +# string into the header. This function is currently used only in # template/en/default/bug/edit.html.tmpl. sub navigation_links($) { my ($buglist) = @_; @@ -849,8 +849,7 @@ Content-type: text/html } sub PutHeader { - ($vars->{'title'}, $vars->{'h1'}, $vars->{'h2'}, - $vars->{'extra'}, $vars->{'jscript'}) = (@_); + ($vars->{'title'}, $vars->{'h1'}, $vars->{'h2'}) = (@_); $::template->process("global/header.html.tmpl", $::vars) || ThrowTemplateError($::template->error()); diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 414639c22b..cb979b0c8e 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();\"" %]