]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 148179: Cleans up interface to header.html.tmpl.
authormyk%mozilla.org <>
Wed, 5 Jun 2002 05:56:35 +0000 (05:56 +0000)
committermyk%mozilla.org <>
Wed, 5 Jun 2002 05:56:35 +0000 (05:56 +0000)
r=justdave,bbaetz

template/en/default/attachment/create.html.tmpl
template/en/default/global/header.html.tmpl
template/en/default/search/search.html.tmpl

index 332d0d5f026beb55020d568309bb0279c398a77a..15f2e9e223eb2b1d80301d50520a308259ca01a9 100644 (file)
@@ -32,7 +32,7 @@
     th { text-align: right; vertical-align: baseline; white-space: nowrap; }
     td { text-align: left; vertical-align: baseline; padding-bottom: 5px; }
   "
-  body_attributes = "onload=\"setContentTypeDisabledState();\""
+  onload="setContentTypeDisabledState();"
 %]
 
 <form name="entryform" method="post" action="attachment.cgi" enctype="multipart/form-data">
index 1a8ce33a8e9ea2107fbabb2e32f3f21f27e0a208..70c892db5a53430d550b25eb92c710725b05e558 100644 (file)
@@ -33,6 +33,8 @@
 [% DEFAULT
   h1 = title
   h2 = ""
+  bgcolor = "#FFFFFF"
+  onload = ""
 %]
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
   
   </head>
   
-[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag %]
+[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag,
+  # but set the bgcolor and onload attributes in the DEFAULT directive above.
+  #%]
 
-  <body [% "bgcolor=\"#FFFFFF\"" UNLESS body_attributes.search('(?:^|\s)bgcolor=') %] [%+ body_attributes %]>
+  <body bgcolor="[% bgcolor %]" onload="[% onload %]">
 
 [%# Migration note: the following file corresponds to the old Param
   # 'bannerhtml'
index d5961ebd22b753f5034f018515757ecfc8fdf98f..09e83add8b43f1b215e0964f37c869e76aeacfa5 100644 (file)
@@ -27,7 +27,7 @@
 
 [% PROCESS global/header.html.tmpl 
   title = "Search for bugs"
-  body_attributes = "onload=\"selectProduct(document.forms['queryform']);\""
+  onload = "selectProduct(document.forms['queryform']);"
 %]
 
 [% button_name = "Search" %]