aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-19 16:52:19 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-19 17:46:20 +0200
commit8db90e886bc25f382145a3af543959021851e5cd (patch)
tree6b48b8350bb209e686e6ec2d2d076a40ab1bc42b /lib/bzpage.js
parentfcfbd3f7f01df5c67182366dc25e41567addc3b8 (diff)
downloadbugzilla-triage-8db90e886bc25f382145a3af543959021851e5cd.tar.gz
Allow empty Xorg log analysis
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 9c24256..ff616ea 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -82,15 +82,12 @@ var BZPage = function BZPage(win, config) {
}
if ("XorgLogAnalysis" in config.gJSONData.configData) {
- console.log("configData = " + config.gJSONData.configData);
- console.log("XorgLogAnalysis = " + config.gJSONData.configData.XorgLogAnalysis);
this.xorglogAnalysis = config.gJSONData.configData.XorgLogAnalysis;
}
if ("submitsLogging" in config.gJSONData.configData &&
config.gJSONData.configData.submitsLogging) {
this.log = config.logger;
- console.log("length of this.log.store = " + this.log.getLength());
this.setUpLogging();
}
@@ -119,8 +116,6 @@ var BZPage = function BZPage(win, config) {
brElementPlacer.parentNode.insertBefore(this.doc.createElement("br"),
brElementPlacer);
}
- } else {
- console.log("Cannot find element with 'comment_status_commit' ID!");
}
this.generateButtons();
@@ -394,7 +389,6 @@ BZPage.prototype.createNewButton = function createNewButton (location, after, pk
// creation of button might be conditional on existence of data in constantData
if ("ifExist" in cmdObj) {
if (!(cmdObj.ifExist in this.constantData)) {
- console.log("Element with id " + newId + " won't be created!");
return ;
}
}
@@ -755,7 +749,6 @@ BZPage.prototype.getPassword = function getPassword (login) {
BZPage.prototype.setUpLogging = function setUpLogging () {
// Protection against double-call
if (this.doc.getElementById("generateTSButton")) {
- console.log("Logging has been already set up!");
return ;
}
@@ -765,14 +758,9 @@ BZPage.prototype.setUpLogging = function setUpLogging () {
// logging all submits for timesheet
if (!this.submitHandlerInstalled) {
- console.log("Installing submit callback!");
this.doc.forms.namedItem("changeform").addEventListener("submit",function (evt) {
- console.log("Submit callback!");
-
var resp = that.log.addLogRecord(that);
if (resp === null) {
- console.log("Avoiding submitting!");
- // TODO doesn't work ... still submitting'
evt.stopPropagation();
evt.preventDefault();
}
@@ -801,7 +789,7 @@ BZPage.prototype.setUpLogging = function setUpLogging () {
"click",
function(evt) {
var otherTS = {}, thisTS = that.log.store;
-
+
jsonPaths = prompts.promptFileOpenPicker(that.win);
if (fileMod.exists(jsonPaths)) {
otherTS = JSON.parse(fileMod.read(jsonPaths));
@@ -814,7 +802,7 @@ BZPage.prototype.setUpLogging = function setUpLogging () {
}
} else {
console.error("File " + jsonPaths + " doesn't exist!");
- }
+ }
}, false);
var clearLogsUI = this.doc.createElement("li");