diff options
author | Matěj Cepl <mcepl@redhat.com> | 2009-12-15 18:48:52 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2009-12-15 18:48:52 +0100 |
commit | 0b361150108c751644370c4364dbee9491216a36 (patch) | |
tree | e700224de1cb5bc27b201656aee4e335ccb98cd9 /bugzillaBugTriage.js | |
parent | 130db374f29f442f067aa5b23843a55b6b173877 (diff) | |
download | bugzilla-triage-0b361150108c751644370c4364dbee9491216a36.tar.gz |
Some attempts to make it working for non-RH employees.
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r-- | bugzillaBugTriage.js | 13 |
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, |