aboutsummaryrefslogtreecommitdiffstats
path: root/data/rhlib/rhbzpage.js
diff options
context:
space:
mode:
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);
+ };
+};