aboutsummaryrefslogtreecommitdiffstats
path: root/data/rhlib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-04-11 01:03:00 +0200
committerMatěj Cepl <mcepl@redhat.com>2012-04-11 01:03:00 +0200
commitba9bd8b38bb04421dbc4fa045b02a6f320d817d6 (patch)
tree8e9af1d43b81796c154fe6e15fc48721d9d16e42 /data/rhlib/rhbzpage.js
parent0f33ced7ef3e2729c5e31733990dd7c60e0720ad (diff)
downloadbugzilla-triage-ba9bd8b38bb04421dbc4fa045b02a6f320d817d6.tar.gz
Attempts to make the script work on bugs.eclipse.org.
Diffstat (limited to 'data/rhlib/rhbzpage.js')
-rw-r--r--data/rhlib/rhbzpage.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js
index eb10238..f8c7ca7 100644
--- a/data/rhlib/rhbzpage.js
+++ b/data/rhlib/rhbzpage.js
@@ -489,8 +489,11 @@ function RHBZinit(things) {
}, false);
// Uncheck "set default assignee" when the assignee is changed by other means
- document.getElementById("assigned_to").addEventListener("change",
- function() {
- changeAssignee(null);
- }, false);
-}
+ var assAnchor = document.getElementById("assigned_to");
+ if (assAnchor) {
+ assAnchor.addEventListener("change",
+ function() {
+ changeAssignee(null);
+ }, false);
+ };
+};