aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bzpage.js2
-rw-r--r--lib/rhbzpage.js5
-rw-r--r--package.json2
-rw-r--r--update.rdf18
4 files changed, 21 insertions, 6 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index de03107..b4891c5 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -18,8 +18,6 @@ var Color = require("color").Color;
var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";
// Shared contstants
-var TriagedDistro = 13;
-exports.TriagedDistro = TriagedDistro;
var NumberOfFrames = 7;
exports.NumberOfFrames = NumberOfFrames;
var BTSPrefNS = "bugzilla-triage.setting.";
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 3ae39be..282189b 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -198,7 +198,6 @@ RHBugzillaPage.prototype.closeSomeRelease = function() {
// and put the release version to
// "Fixed in Version" textbox
// otherwise -> NEXTRELEASE
- var verNo = this.getVersion();
this.selectOption("bug_status", "CLOSED");
var text = "";
var resolution = "";
@@ -209,7 +208,7 @@ RHBugzillaPage.prototype.closeSomeRelease = function() {
if (text.length > 0) {
resolution = "CURRENTRELEASE";
this.doc.getElementById("cf_fixed_in").value = text;
- } else if (verNo === 999) {
+ } else if (this.doc.getElementById("version").value === "rawhide") {
resolution = "RAWHIDE";
} else {
resolution = "NEXTRELEASE";
@@ -881,7 +880,7 @@ RHBugzillaPage.prototype.markBugTriaged = function() {
// /fedora-meeting.2009-11-24-15.11.log.html
// 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 ver = this.doc.getElementById("version").value;
if ((!this.isEnterprise()) && (ver <= 12)) {
this.selectOption("bug_status", "ASSIGNED");
}
diff --git a/package.json b/package.json
index 7150f1b..48730bf 100644
--- a/package.json
+++ b/package.json
@@ -7,5 +7,5 @@
"description": "Additional buttons and other function helping in the triage on bugzilla",
"author": "Matej Cepl (http://matej.ceplovi.cz)",
"license": "MIT/X11 (http://opensource.org/licenses/mit-license.php)",
- "version": "0.20"
+ "version": "0.21"
}
diff --git a/update.rdf b/update.rdf
index b274cb4..b6e4ce3 100644
--- a/update.rdf
+++ b/update.rdf
@@ -108,6 +108,24 @@
</em:targetApplication>
</RDF:Description>
</RDF:li>
+ <RDF:li>
+ <RDF:Description>
+ <em:version>0.21</em:version> <!-- This is the version number of the add-on -->
+ <!-- One targetApplication for each application the add-on is compatible with -->
+ <em:targetApplication>
+ <RDF:Description>
+ <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
+ <em:minVersion>3.6</em:minVersion>
+ <em:maxVersion>4.*</em:maxVersion>
+ <!-- This is where this version of the add-on will be downloaded from -->
+ <em:updateLink>https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-0.21.xpi</em:updateLink>
+
+ <!-- A page describing what is new in this updated version -->
+ <em:updateInfoURL>https://fedorahosted.org/bugzilla-triage-scripts/wiki/ChangeLog</em:updateInfoURL>
+ </RDF:Description>
+ </em:targetApplication>
+ </RDF:Description>
+ </RDF:li>
</RDF:Seq>
</em:updates>
</RDF:Description>