aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-25 01:17:49 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-25 14:21:22 +0100
commitbcf1996cbdd2118a88226b24a4c78a08fe21749b (patch)
treeb2274c77ae97dc116675145885b335e2a8377d5f /data/lib/util.js
parent23fb75565611af1e85455844be1d8931efe0a0a4 (diff)
downloadbugzilla-triage-bcf1996cbdd2118a88226b24a4c78a08fe21749b.tar.gz
Working on cutting down lines from bug-page-mod.js
Diffstat (limited to 'data/lib/util.js')
-rw-r--r--data/lib/util.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index f336a7f..6cbb493 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -124,14 +124,18 @@ function createDeadLink (id, text, parent, callback, params, before, covered, ac
}, false);
}
+ locParent.appendChild(newAElem);
+
if ((before === "br") || (before === true)) {
locParent.appendChild(document.createElement("br"));
}
else if (before === "dash") {
locParent.appendChild(document.createTextNode("\u00A0-\u00A0"));
}
-
- locParent.appendChild(newAElem);
+ else if (before === "parens") {
+ locParent.appendChild(document.createTextNode(")"));
+ locParent.insertBefore(document.createTextNode("("), newAElem);
+ }
}
/*