diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-15 16:17:33 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-15 16:17:33 +0200 |
commit | 2b1cf2b13c8d75feff30fdcf93bdb390523e1fd9 (patch) | |
tree | 0f8b0961321085a0bd62adbd96dabc2bc9bc4078 /lib | |
parent | aeeeafbd96d5e647b5dc8256af961216a290d708 (diff) | |
download | bugzilla-triage-2b1cf2b13c8d75feff30fdcf93bdb390523e1fd9.tar.gz |
Move even handler installation to later, so we don't hit missing element; hopefully
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rhbzpage.js | 15 |
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 () { |