aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-08-20 15:25:22 -0400
committerMatěj Cepl <mcepl@redhat.com>2010-08-20 15:52:25 -0400
commita902cc5f289ecf5d17dbf9eec69747141720f8cd (patch)
tree9504b2ff714692353d20e3705025b08a320326a7 /lib
parent63de10a5636f23ab55e01826534f55e263805d77 (diff)
downloadbugzilla-triage-a902cc5f289ecf5d17dbf9eec69747141720f8cd.tar.gz
We don't have getVersion method anymore0.21
Diffstat (limited to 'lib')
-rw-r--r--lib/bzpage.js2
-rw-r--r--lib/rhbzpage.js5
2 files changed, 2 insertions, 5 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");
}