aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bugzillaBugTriage.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index 7f93ca8..61427c1 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -777,7 +777,7 @@ BzPage.prototype.isRHEL = function() {
BzPage.prototype.isTriaged = function() {
// First excceptions
- if (this.version > 7 && this.version < 12) {
+ if (this.version > 7 && this.version < 13) {
return this.dok.getElementById("bug_status").
value.toUpperCase() !== "NEW";
} else { // and then the rule
@@ -1673,13 +1673,14 @@ BzPage.prototype.addLogRecord = function () {
var rec = {};
rec.date = new Date();
rec.bugId = this.bugNo;
+ rec.title = this.title;
var comment = jetpack.tabs.focused.contentWindow.
- prompt("Enter comments for this comment");
+ prompt("Enter comments for this comment").trim();
if (comment.length > 0) {
rec.comment = comment;
var recKey = getISODate(rec.date)+"+"+rec.bugId;
if (myStorage.logs[recKey]) {
- myStorage.logs[recKey].comment += "\n"+comment;
+ myStorage.logs[recKey].comment += "<br/>\n"+comment;
} else {
myStorage.logs[recKey] = rec;
}
@@ -1709,7 +1710,7 @@ BzPage.prototype.timeSheetRecordsPrinter = function (body,records) {
"</strong></p>";
}
body.innerHTML += "<p><em><a href='https://bugzilla.redhat.com/show_bug.cgi?id="+
- x.bugId + "'>Bug "+x.bugId+"</a>"+
+ x.bugId + "'>Bug "+x.title+"</a>"+
" </em>\n<br/>" + x.comment + "</p>";
});
};
@@ -1725,6 +1726,8 @@ BzPage.prototype.generateTimeSheet = function (body) {
newButton.setAttribute("id","clearThePage");
newButton.addEventListener("click",function (evt) {
myStorage.logs = {};
+ jetpack.storage.simple.sync();
+ console.log("mystorage.logs wiped out!");
body.innerHTML = "";
}, false);
@@ -1768,6 +1771,8 @@ function BzPage(doc) {
this.product = this.getOptionValue("product");
this.component = this.getOptionValue("component");
this.version = this.getVersion();
+ this.title = this.dok.getElementById("short_desc_nonedit_display").
+ textContent;
var ITbutton = this.dok.getElementById("cf_issuetracker");
this.its = ITbutton ? ITbutton.value.trim() : "";
this.CCList = Array.map(this.dok.getElementById("cc"),
@@ -1808,9 +1813,7 @@ function BzPage(doc) {
// Dig out backtrace
this.btSnippet = "";
- var bugTitle = this.dok.getElementById("short_desc_nonedit_display").
- textContent;
- if (AbrtRE.test(bugTitle)) {
+ if (AbrtRE.test(this.title)) {
var notedLabel = this.dok.querySelector("label[for='newcc']");
while (notedLabel.firstChild) {