aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-16 18:19:00 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-16 18:19:00 +0200
commit255e556c63171704c28c00dfeffc71d79bc9d78a (patch)
tree58cfea928137538ae728853e00718de4c15c27f3 /lib
parentd53b9140d0768522eeb6a024a17fc41dc73b4966 (diff)
downloadbugzilla-triage-255e556c63171704c28c00dfeffc71d79bc9d78a.tar.gz
Cleanup shared constants to work over modules.
Relates to #12.
Diffstat (limited to 'lib')
-rw-r--r--lib/bzpage.js6
-rw-r--r--lib/main.js2
-rw-r--r--lib/rhbzpage.js3
3 files changed, 6 insertions, 5 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 3735328..f8c46c8 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -10,9 +10,13 @@ var preferences = require("preferences-service");
var prompts = require("prompts");
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;
-var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";
+exports.NumberOfFrames = NumberOfFrames;
var BTSPrefNS = "bugzilla-triage.setting.";
exports.BTSPrefNS = BTSPrefNS;
var BTSPassRealm = "BTSXMLRPCPass";
diff --git a/lib/main.js b/lib/main.js
index 7524552..20c5699 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -24,8 +24,6 @@ var BTSPrefNS = require("bzpage").BTSPrefNS;
var JSONURLDefault = "https://fedorahosted.org/released"+
"/bugzilla-triage-scripts/Config_data.json";
-var TriagedDistro = 13;
-var NumberOfFrames = 7;
var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi";
var config = {};
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index fd53278..bc12cb9 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -14,8 +14,7 @@ var url = require("url");
var timer = require("timer");
var selection = require("selection");
var tabs = require("tabs");
-// var NumberOfFrames = 7;
-// var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";
+var NumberOfFrames = require("bzpage").NumberOfFrames;
// ====================================================================================
// RHBugzillaPage object