diff options
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r-- | bugzillaBugTriage.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 9dba30f..6cfa8c6 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -12,6 +12,7 @@ var RawhideColor = "#007700"; // or "green" var RHITColor = "#660066"; var SalmonPink = "#FFE0B0"; var ReporterColor = "#FFFFA6"; +var TriagedColor = "#F58989"; var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi"; var myConfig = jetpack.storage.simple; var badMIMEArray = ["application/octet-stream","text/x-log"]; @@ -318,6 +319,15 @@ bzPage.prototype.setBranding = function () { }); } + // Make it visible whether the bug has been triaged + if (this.hasKeyword("Triaged")) { + console.log("Nastav barvu"); + $("#bz_field_status",this.doc).css({ + 'background-image' : 'none', + 'background-color' : TriagedColor + }); + } + // we should make visible whether maintCCAddr is in CCList if (isInList(this.maintCCAddr, this.CCList)) { $("#cc_edit_area_showhide", this.doc). @@ -483,6 +493,7 @@ bzPage.prototype.fillInChipMagic = function () { var XorgLogFound = false; var attURL = "", interestingLine = ""; var interestingArray = []; + // Find out Xorg.0.log attachment URL this.XorgLogAttList = this.attachments.filter(function (value, index, array) { @@ -624,7 +635,8 @@ bzPage.prototype.selectOption = function(id,label) { * */ bzPage.prototype.hasKeyword = function(str) { - var kwd = $.trim($('#keywords',this.doc).text()); + var kwd = $.trim($('#keywords',this.doc).val()); + console.log("Keywords = " + kwd); return (RegExp(str).test(kwd)); } |