From dbab0d33fbfe2d0d8abb4bdbcf5393166e2774ee Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" <> Date: Mon, 19 Dec 2005 06:19:54 +0000 Subject: Bug 320275 !Node "compat" hack is very broken r=myk a=justdave --- template/en/default/bug/dependency-tree.html.tmpl | 18 ++-- template/en/default/bug/edit.html.tmpl | 113 +++++++++++----------- 2 files changed, 68 insertions(+), 63 deletions(-) diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl index b8e0c79e1..8b5ecd59c 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 940e320bd..3df301465 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 %] - /*