From: Frédéric Buclin Date: Wed, 26 Mar 2014 19:10:07 +0000 (+0100) Subject: Bug 978070: Do not use document.write() to insert HTML code X-Git-Tag: bugzilla-4.5.3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf74a17e34f66ecdeb092f7b020bed95821a2492;p=thirdparty%2Fbugzilla.git Bug 978070: Do not use document.write() to insert HTML code r/a=justdave --- diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index 1ab30853cd..87ae525e7d 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -28,7 +28,7 @@ %] [%# No need to display the Diff button and iframe if the attachment is not a patch. %] -[% use_patchviewer = (feature_enabled('patch_viewer') && attachment.ispatch) %] +[% use_patchviewer = (feature_enabled('patch_viewer') && attachment.ispatch) ? 1 : 0 %] [% can_edit = attachment.validate_can_edit %] [% editable_or_hide = can_edit ? "" : " bz_hidden_option" %] @@ -202,30 +202,33 @@ View the attachment on a separate page. [% END %] + + [% IF use_patchviewer %] + + [% END %] + + [% IF user.id %] + + + + [% END %] + + [% IF use_patchviewer %] + + [% END %] + + [% ELSE %] diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index 5cc9df64fd..4c087c6379 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -29,13 +29,12 @@ var descriptions = [ ]; function PutDescription() { - if ((document.getElementById) && (document.body.innerHTML)) { - var componentIndex = document.getElementById('component').selectedIndex; - if (componentIndex != -1) { - var description = document.getElementById('description'); - description.innerHTML = descriptions[componentIndex]; - } - } + var description = document.getElementById('description'); + var componentIndex = document.getElementById('component').selectedIndex; + YAHOO.util.Dom.removeClass("description", "bz_default_hidden"); + if (componentIndex != -1) { + description.innerHTML = descriptions[componentIndex]; + } } @@ -130,12 +129,8 @@ function PutDescription() { [% END %] -
- +
+ Select a component to see its description here.

diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index 8a0b459b3f..1c3422fa8a 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -430,15 +430,9 @@ with details of what you were doing at the time this message appeared.

- - - +

+ URL: [% Bugzilla.cgi.self_url FILTER html %] +

[% error_message FILTER none %] diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 80204a613e..2282d69f4c 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -10,6 +10,11 @@ + + +
diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl index 8fb89af7ca..e928cf0c50 100644 --- a/template/en/default/list/quips.html.tmpl +++ b/template/en/default/list/quips.html.tmpl @@ -107,7 +107,15 @@ [% END %] - - - + YAHOO.util.Dom.removeClass("check_all", "bz_default_hidden"); + YAHOO.util.Dom.removeClass("uncheck_all", "bz_default_hidden"); + //--> +
[% END %]