aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-10 08:42:24 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-10 08:42:24 +0200
commit105fc769c9667028c40b3352d426b6667868aa08 (patch)
tree92940aa36ea9edf34171925210a13cd6dc338cfb /lib/rhbzpage.js
parent08a218594235ff0d90c64d1c76f245e333a4acd6 (diff)
downloadbugzilla-triage-105fc769c9667028c40b3352d426b6667868aa08.tar.gz
Trying to clean-up the OO structure ... there is still something broken there
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index f2e7c22..7f2a875 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -48,22 +48,8 @@ var RHBugzillaPage = exports.RHBugzillaPage = function RHBugzillaPage(doc, confi
// END OF CONSTANTS
- // Prepare for query buttons
- // FIXME getting null for commentArea sometimes
- var commentArea = doc.getElementById("comment_status_commit");
- if (commentArea) {
- var brElementPlacer = commentArea.getElementsByTagName("br");
- console.log("brElementPlacer.length = " + brElementPlacer.length);
- brElementPlacer = brElementPlacer[0];
- if (brElementPlacer) {
- brElementPlacer.setAttribute("id","brElementPlacer_location");
- brElementPlacer.parentNode.insertBefore(doc.createElement("br"),
- brElementPlacer);
- }
- }
-
// inheritance ... call superobject's constructor
- BZPage.call(this,doc, config);
+ BZPage.call(this, doc, config);
var that = this;
this.reqCounter = 0;
@@ -76,6 +62,20 @@ var RHBugzillaPage = exports.RHBugzillaPage = function RHBugzillaPage(doc, confi
var ITbutton = this.doc.getElementById("cf_issuetracker");
this.its = ITbutton ? ITbutton.value.trim() : "";
+ // Prepare for query buttons
+ // FIXME getting null for commentArea sometimes
+ var commentArea = this.doc.getElementById("comment_status_commit");
+ if (commentArea) {
+ var brElementPlacer = commentArea.getElementsByTagName("br");
+ console.log("brElementPlacer.length = " + brElementPlacer.length);
+ brElementPlacer = brElementPlacer[0];
+ if (brElementPlacer) {
+ brElementPlacer.setAttribute("id","brElementPlacer_location");
+ brElementPlacer.parentNode.insertBefore(this.doc.createElement("br"),
+ brElementPlacer);
+ }
+ }
+
// set default assignee on change of the component
this.doc.getElementById("component").addEventListener("change",
function() {