aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-05-31 19:17:19 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-05-31 19:17:19 +0200
commit475c2df048fa5c42ba913ceeba3e6201938031f7 (patch)
tree5a77c7f6c5bff188ce96020d6186fcb2f07696e5 /lib/bzpage.js
parent2447e31a804eb7d7fe5ef01b974cba3b615e0594 (diff)
downloadbugzilla-triage-475c2df048fa5c42ba913ceeba3e6201938031f7.tar.gz
rewrite util.js to be more compliant with SDK usage.
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index c4c88f3..bad7b5e 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -3,6 +3,7 @@
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
"use strict";
+var utilMod = require("util");
var TriagedDistro = 13;
var NumberOfFrames = 7;
@@ -55,7 +56,7 @@ exports.BZPage = function BZPage(doc) {
}
this.submitHandlerInstalled = false;
- this.bugNo = hlpr.getBugNo(this.doc.location.toString());
+ this.bugNo = utilMod.getBugNo(this.doc.location.toString());
this.reporter = this.getReporter();
this.product = this.getOptionValue("product");
this.component = this.getOptionValue("component");
@@ -486,7 +487,7 @@ BZPage.prototype.addStuffToTextBox = function(id, stuff) {
stuff = textBox.value ? "\n\n" + stuff : stuff;
textBox.value += stuff;
} else {
- textBox.value = hlpr.addCSVValue(textBox.value,stuff);
+ textBox.value = utilMod.addCSVValue(textBox.value,stuff);
}
};
@@ -498,7 +499,7 @@ BZPage.prototype.addStuffToTextBox = function(id, stuff) {
*/
BZPage.prototype.removeStuffFromTextBox = function(id, stuff) {
let changedElement = this.getElementById(id);
- changedElement.value = hlpr.removeCSVValue(changedElement.value,stuff);
+ changedElement.value = utilMod.removeCSVValue(changedElement.value,stuff);
}
/**
@@ -723,7 +724,7 @@ BZPage.prototype.addToCCList = function(who) {
this.doc.getElementById("addselfcc").checked = true;
} else {
this.clickMouse("cc_edit_area_showhide");
- if (!hlpr.isInList(who, this.CCList)) {
+ if (!utilMod.isInList(who, this.CCList)) {
this.addStuffToTextBox("newcc",who);
}
}