aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-21 01:21:23 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-21 01:21:23 +0200
commit9c78d98edef12613da157c8cfa366bf937edd422 (patch)
tree5a6e61a9bca39bcfa71ae48dbe08c8b5c756e81b /lib/bzpage.js
parent47b6e6fb91372b54bb309e57c14e3f9f987e0322 (diff)
downloadbugzilla-triage-9c78d98edef12613da157c8cfa366bf937edd422.tar.gz
Logger works and some cleanup
Juhuuu, logger works (almost, I haven't tested generation of reports yet) remove all trailing blank space
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 1b44b97..5344fbb 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -32,24 +32,25 @@ var BZPage = function BZPage(doc, config) {
this.packages = this.getInstalledPackages(config);
if ("commentStrings" in config.gJSONData) {
- this.commentStrings = config.gJSONData.commentStrings;
+ this.commentStrings = config.gJSONData.commentStrings;
}
-
+
if ("constantData" in config.gJSONData) {
this.constantData = config.gJSONData.constantData;
}
-
+
if ("CCmaintainer" in config.gJSONData.constantData) {
this.defBugzillaMaintainerArr = config.gJSONData.constantData.CCmaintainer;
}
if ("suspiciousComponents" in config.gJSONData.configData) {
- this.suspiciousComponents = config.gJSONData.configData.suspiciousComponents;
+ this.suspiciousComponents = config.gJSONData.configData.suspiciousComponents;
}
-
+
if ("submitsLogging" in config.gJSONData.configData &&
config.gJSONData.configData.submitsLogging) {
this.log = config.logger;
+ console.log("this.log = " + this.log.toSource());
this.setUpLogging();
}
@@ -62,7 +63,7 @@ var BZPage = function BZPage(doc, config) {
this.version = this.getVersion();
this.title = this.doc.getElementById("short_desc_nonedit_display").textContent;
this.CCList = this.getCCList();
-
+
// Prepare for query buttons
// FIXME getting null for commentArea sometimes
var commentArea = this.doc.getElementById("comment_status_commit");
@@ -659,6 +660,7 @@ BZPage.prototype.setUpLogging = function setUpLogging () {
console.log("Installing submit callback!");
this.doc.forms.namedItem("changeform").addEventListener("submit",function (evt) {
console.log("Submit callback!");
+
var resp = that.log.addLogRecord(that);
console.log("resp = " + resp);
if (resp === null) {