aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
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() {