diff options
-rw-r--r-- | lib/bzpage.js | 6 | ||||
-rw-r--r-- | lib/main.js | 2 | ||||
-rw-r--r-- | lib/rhbzpage.js | 3 |
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 |