aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-23 16:23:01 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-23 16:23:01 +0200
commit163b0b733e6fb2c735f513368069498c2312a9d7 (patch)
tree5c4a4c59591bbbeaf2b88fe5b97f9d5e0a05749c /lib/bzpage.js
parent47f8de7261fa8077a63058d5185e3cbb74983ff7 (diff)
downloadbugzilla-triage-163b0b733e6fb2c735f513368069498c2312a9d7.tar.gz
Docs and namespace for preferences
- the first attempt (just a copy) of documentation - put all preferences into names (bugzilla-triage.setting.)
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 8061577..1a43191 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -11,6 +11,7 @@ var Color = require("color").Color;
var TriagedDistro = 13;
var NumberOfFrames = 7;
var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";
+var BSTPrefNS = "bugzilla-triage.setting.";
// ====================================================================================
// BZPage's methods
@@ -627,12 +628,13 @@ BZPage.prototype.getAttachments = function getAttachments () {
* @return String with the password
*/
BZPage.prototype.getPassword = function getPassword () {
- if (preferences.isSet("BZpassword")) {
- return preferences.get("BZpassword",undefined);
+ var prefName = BSTPrefNS+"BZpassword";
+ if (preferences.isSet(prefName)) {
+ return preferences.get(prefName,undefined);
} else {
var passwordText = util.getPassword();
if (passwordText) {
- preferences.set("BZpassword", passwordText);
+ preferences.set(prefName, passwordText);
}
}
};