diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-04-11 01:03:00 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-04-11 01:03:00 +0200 |
commit | ba9bd8b38bb04421dbc4fa045b02a6f320d817d6 (patch) | |
tree | 8e9af1d43b81796c154fe6e15fc48721d9d16e42 /data/rhlib/rhbzpage.js | |
parent | 0f33ced7ef3e2729c5e31733990dd7c60e0720ad (diff) | |
download | bugzilla-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.js | 13 |
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); + }; +}; |