From: timeless%mozdev.org <>
Date: Wed, 28 Dec 2005 04:51:58 +0000 (+0000)
Subject: Bug 320275 - !Node "compat" hack is very broken
X-Git-Tag: bugzilla-2.20.1~43
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc1c2247ee018eaf9b6851055ebb8aba811dd2f9;p=thirdparty%2Fbugzilla.git
Bug 320275 - !Node "compat" hack is very broken
r=wicked a=justdave
---
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 7975f7177c..b4b57d41e4 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,56 +62,57 @@
}
[% END %]
- /*