diff options
author | Matěj Cepl <mcepl@redhat.com> | 2013-08-05 01:38:10 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2013-08-05 01:38:10 +0200 |
commit | 961b0907b91f9832a5517ade4b2ec35f918a4658 (patch) | |
tree | f6193f42245ccafeb2221f53ffdfc8de032622f2 /data/lib/bzpage.js | |
parent | 6d8f3f27c95b447f670917df5f496c97c8fabd62 (diff) | |
download | bugzilla-triage-961b0907b91f9832a5517ade4b2ec35f918a4658.tar.gz |
Make 'Add external ticket' button working again.
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r-- | data/lib/bzpage.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index 9d83e15..1ab6585 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -390,10 +390,9 @@ function startup() { } // Prepare for adding external bugs - var a0Elements = document.getElementsByName("a0"); - if (a0Elements.length > 0) { - var extBugsHeadline = a0Elements[a0Elements.length - 1]; - extBugsHeadline.setAttribute("id", "external_bugs_headline"); + var a0Elements = document.getElementById("et0"); + if (a0Elements) { + a0Elements.setAttribute("id", "external_bugs_headline"); } // So, now we know we are logged in, so we can get to |