From: timeless%mozdev.org <> Date: Mon, 19 Dec 2005 06:19:54 +0000 (+0000) Subject: Bug 320275 !Node "compat" hack is very broken X-Git-Tag: bugzilla-2.22rc1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbab0d33fbfe2d0d8abb4bdbcf5393166e2774ee;p=thirdparty%2Fbugzilla.git Bug 320275 !Node "compat" hack is very broken r=myk a=justdave --- diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl index b8e0c79e1e..8b5ecd59c3 100644 --- a/template/en/default/bug/dependency-tree.html.tmpl +++ b/template/en/default/bug/dependency-tree.html.tmpl @@ -109,9 +109,11 @@ [% END %] + [% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 940e320bdd..3df3014659 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -31,28 +31,30 @@ /* Outputs a link to call replyToComment(); used to reduce HTML output */ function addReplyLink(id) { - /* XXX this should really be updated to use the DOM Core's - * createElement, but finding a container isn't trivial */ - document.write('[reply<' + '/a>]'); + /* XXX this should really be updated to use the DOM Core's + * createElement, but finding a container isn't trivial. + */ + document.write('[reply<' + '/a>]'); } /* Adds the reply text to the `comment' textarea */ function replyToComment(id) { - /* pre id="comment_name_N" */ - var text_elem = document.getElementById('comment_text_'+id); - var text = getText(text_elem); - - /* make sure we split on all newlines -- IE or Moz use \r and \n - * respectively */ - text = text.split(/\r|\n/); - - var replytext = ""; - for (var i=0; i < text.length; i++) { - replytext += "> " + text[i] + "\n"; - } + /* pre id="comment_name_N" */ + var text_elem = document.getElementById('comment_text_'+id); + var text = getText(text_elem); + + /* make sure we split on all newlines -- IE or Moz use \r and \n + * respectively. + */ + text = text.split(/\r|\n/); + + var replytext = ""; + for (var i=0; i < text.length; i++) { + replytext += "> " + text[i] + "\n"; + } - replytext = "(In reply to comment #" + id + ")\n" + replytext + "\n"; + replytext = "(In reply to comment #" + id + ")\n" + replytext + "\n"; [% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %] if (document.getElementById('isprivate-'+id).checked) { @@ -60,66 +62,67 @@ } [% END %] - /*