aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-23 21:33:08 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-23 21:33:25 +0200
commit9b3f22fd07c0cfcc1e2368c7f32a0423a3a4bd85 (patch)
tree7d02fcf6347fe51e06508080f7151c37e6dbd0d1 /lib/rhbzpage.js
parent64213233a16a49bda77f5bb9384c90c7d76f7d2f (diff)
downloadbugzilla-triage-9b3f22fd07c0cfcc1e2368c7f32a0423a3a4bd85.tar.gz
More resistance to differences with bugzilla.mozilla.org
Fixes #30
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 78c4f7d..61c9fc7 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -141,11 +141,14 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) {
this.checkComments();
// set default assignee on change of the component
- this.doc.getElementById("component").addEventListener("change",
- function() {
- that.component = that.getOptionValue("component");
- that.changeAssignee("default");
- }, false);
+ var compElement = this.doc.getElementById("component");
+ if (compElement && (compElement.options)) {
+ this.doc.getElementById("component").addEventListener("change",
+ function() {
+ that.component = that.getOptionValue("component");
+ that.changeAssignee("default");
+ }, false);
+ }
}; // END OF RHBugzillaPage CONSTRUCTOR