aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-31 00:35:44 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:44:01 +0200
commit461f09665a6a9be7700237f6b458b65ca38061d5 (patch)
treebf13b0b3d6585e176940aa4b81f8605e91d7d20f /data
parentd82ae1ac86607cf902b874c60de55136127520a7 (diff)
downloadbugzilla-triage-461f09665a6a9be7700237f6b458b65ca38061d5.tar.gz
Fix order of covering elements in createDeadLink.
Diffstat (limited to 'data')
-rw-r--r--data/lib/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index 611d353..6256171 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -140,10 +140,10 @@ function createDeadLink (id, text, parent, callback, params, before, covered, ac
locParent.appendChild(newAElem);
if ((before === "br") || (before === true)) {
- locParent.appendChild(document.createElement("br"));
+ locParent.insertBefore(document.createElement("br"), newAElem);
}
else if (before === "dash") {
- locParent.appendChild(document.createTextNode("\u00A0-\u00A0"));
+ locParent.insertBefore(document.createTextNode("\u00A0-\u00A0"), newAElem);
}
else if (before === "parens") {
locParent.appendChild(document.createTextNode(")"));