aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bzpage.js2
-rw-r--r--lib/logger.js17
-rw-r--r--lib/mozillabzpage.js2
-rw-r--r--lib/rhbzpage.js9
4 files changed, 17 insertions, 13 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 042a19e..1b44b97 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -741,5 +741,5 @@ BZPage.prototype.getCCList = function getCCList () {
return outCCList;
};
-//exports.BZPage = apiUtils.publicConstructor(BZPage);
+// exports.BZPage = apiUtils.publicConstructor(BZPage);
exports.BZPage = BZPage; \ No newline at end of file
diff --git a/lib/logger.js b/lib/logger.js
index 3a534d4..1aec908 100644
--- a/lib/logger.js
+++ b/lib/logger.js
@@ -5,8 +5,9 @@ var urlMod = require("url");
var urilMod = require("util");
var Color = require("color").Color;
var tabs = require("tabs");
+var apiUtils = require("api-utils");
-var Logger = exports.Logger = function Logger(store, abbsMap) {
+function Logger(store, abbsMap) {
this.EmptyLogsColor = new Color(0, 255, 0);
this.FullLogsColor = new Color(0, 40, 103);
@@ -14,6 +15,8 @@ var Logger = exports.Logger = function Logger(store, abbsMap) {
this.abbsMap = abbsMap;
};
+exports.Logger = apiUtils.publicConstructor(Logger);
+
Logger.prototype.addLogRecord = function(that) {
var rec = {};
rec.date = new Date();
@@ -30,14 +33,14 @@ Logger.prototype.addLogRecord = function(that) {
console.log("rec = " + rec.toSource());
var clearLogAElem = that.doc.getElementById("clearLogs");
- if (clearLogAElem.style.color != this.FullLogsColor) {
- clearLogAElem.style.color = this.FullLogsColor;
+ if (clearLogAElem.style.color != that.FullLogsColor) {
+ clearLogAElem.style.color = that.FullLogsColor;
clearLogAElem.style.fontWeight = "bolder";
}
- if (this.store[recKey]) {
- this.store[recKey].comment += "<br/>\n" + comment;
+ if (that.store[recKey]) {
+ that.store[recKey].comment += "<br/>\n" + comment;
} else {
- this.store[recKey] = rec;
+ that.store[recKey] = rec;
}
}
return comment;
@@ -112,4 +115,4 @@ Logger.prototype.createBlankPage = function (ttl, bodyBuildCB) {
Logger.prototype.generateTimeSheet = function(body) {
var doc = body.ownerDocument;
this.timeSheetRecordsPrinter(body, this.store);
-};
+}; \ No newline at end of file
diff --git a/lib/mozillabzpage.js b/lib/mozillabzpage.js
index add0a3d..9c82570 100644
--- a/lib/mozillabzpage.js
+++ b/lib/mozillabzpage.js
@@ -2,6 +2,7 @@
// http://www.opensource.org/licenses/mit-license.php
"use strict";
var utilMod = require("util");
+var apiUtils = require("api-utils");
// ============================================================================
// MozillaBugzilla object
@@ -13,4 +14,5 @@ var MozillaBugzilla = function MozillaBugzilla (doc, config) {
MozillaBugzilla.prototype = utilMod.heir(BZPage);
MozillaBugzilla.prototype.constructor = MozillaBugzilla;
+// exports.MozillaBugzilla = apiUtils.publicConstructor(MozillaBugzilla);
exports.MozillaBugzilla = MozillaBugzilla; \ No newline at end of file
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 123f87e..d7860a2 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -12,7 +12,6 @@ var BZPage = require("bzpage").BZPage;
var url = require("url");
var selection = require("selection");
var tabs = require("tabs");
-// var TriagedDistro = 13;
// var NumberOfFrames = 7;
// var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi";
// var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";
@@ -898,8 +897,8 @@ RHBugzillaPage.prototype.markBugTriaged = function() {
// for F13 and later, ASSIGNED is "add Triaged keyword" (as well)
// for <F13 it is "add both" (ASSIGNED status and Triaged keyword)
var ver = this.getVersion();
- var assignee = this.getOwner();
- if ((!this.isEnterprise()) && (ver < TriagedDistro)) {
+ console.log("Marking bug as Triaged!");
+ if ((!this.isEnterprise()) && (ver <= 12)) {
this.selectOption("bug_status", "ASSIGNED");
}
this.addStuffToTextBox("keywords","Triaged");
@@ -939,5 +938,5 @@ RHBugzillaPage.prototype.parseBacktrace = function(ret) {
return outStr;
};
-//exports.RHBugzillaPage = apiUtils.publicConstructor(RHBugzillaPage);
-exports.RHBugzillaPage = RHBugzillaPage;
+// exports.RHBugzillaPage = apiUtils.publicConstructor(RHBugzillaPage);
+exports.RHBugzillaPage = RHBugzillaPage; \ No newline at end of file