aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-15 16:17:33 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-15 16:17:33 +0200
commit2b1cf2b13c8d75feff30fdcf93bdb390523e1fd9 (patch)
tree0f8b0961321085a0bd62adbd96dabc2bc9bc4078
parentaeeeafbd96d5e647b5dc8256af961216a290d708 (diff)
downloadbugzilla-triage-2b1cf2b13c8d75feff30fdcf93bdb390523e1fd9.tar.gz
Move even handler installation to later, so we don't hit missing element; hopefully
-rw-r--r--lib/rhbzpage.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 1a846f8..82d5e05 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -66,13 +66,6 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) {
var ITbutton = this.doc.getElementById("cf_issuetracker");
this.its = ITbutton ? ITbutton.value.trim() : "";
- // set default assignee on change of the component
- this.doc.getElementById("component").addEventListener("change",
- function() {
- that.component = that.getOptionValue("component");
- that.changeAssignee("default");
- }, false);
-
// getBadAttachments
this.XorgLogAttList = [];
this.XorgLogAttListIndex = 0;
@@ -115,6 +108,14 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) {
this.fillInChipMagic();
}
}
+
+ // set default assignee on change of the component
+ this.doc.getElementById("component").addEventListener("change",
+ function() {
+ that.component = that.getOptionValue("component");
+ that.changeAssignee("default");
+ }, false);
+
}; // END OF RHBugzillaPage CONSTRUCTOR
RHBugzillaPage.prototype.toString = function toString () {