aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index 3a507a7..324aeff 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -3,6 +3,10 @@
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
+/* FIXME
+ - password dialog for password prompt
+ */
+
jetpack.future.import("pageMods");
jetpack.future.import("storage.simple");
jetpack.future.import("selection");
@@ -503,7 +507,7 @@ bzPage.prototype.setBranding = function () {
var TriagedColor = {};
if (this.isRHEL()) {
- if (this.its.length > 0) {
+ if (this.its && (this.its.length > 0)) {
brandColor = RHITColor;
} else {
brandColor = RHColor;
@@ -1175,7 +1179,7 @@ bzPage.prototype.generateToolBar = function(anchor,array) {
*/
bzPage.prototype.generalPurposeCureForAllDisease = function
(addString,nextState,secondParameter) {
- var verNo = 1;
+ var verNo = this.getVersion();
if (addString.length >0) {
this.addTextToTextBox("comment",addString);
@@ -1190,7 +1194,6 @@ bzPage.prototype.generalPurposeCureForAllDisease = function
// and put the release version to
// "Fixed in Version" textbox
// otherwise -> NEXTRELEASE
- verNo = this.getVersion();
this.selectOption("bug_status", nextState);
var text = jetpack.selection.text.trim();
if (text.length > 0) {
@@ -1364,7 +1367,9 @@ function bzPage(doc) {
this.product = $("#product option:selected:first", this.doc).text();
this.component = $("#component option:selected:first", this.doc).text();
this.version = this.getVersion();
- this.its = $("#cf_issuetracker", this.doc).val().trim();
+// var ITbutton = this.dok.getElementById("cf_issuetracker");
+// this.its = ITbutton ? ITbutton.value.trim() : "";
+ this.its = ""; // FIXME for now
this.CCList = $.makeArray($("#cc", this.doc).val());
this.owner = $("#bz_assignee_edit_container .fn:first", this.doc).text();
this.defaultAssignee = filterByRegexp(defAssigneeList,